# File lib/heroku/commands/pg.rb, line 186
    def ingress
      with_heroku_postgresql_database do |name, url|
        database = heroku_postgresql_client(url).get_database
        abort "The database is not available" unless database[:state] == "available"
        redisplay("Granting ingress to #{name} for 60s...")
        heroku_postgresql_client(url).ingress
        url = URI.parse(url)
        redisplay("Granting ingress to #{name} for 60s... done\n")
        display("Connection info string:")
        display("   \"dbname=#{url.path[1..-1]} host=#{url.host} user=#{url.user} password=#{url.password}\"")
      end
    end