# File lib/heroku/commands/pg.rb, line 46
    def with_heroku_postgresql_database
      if !heroku_postgresql_var_names
        abort("The addon is not installed for the app #{app}")
      end

      (name, database) = extract_db
      abort " !  This command is only available for addon databases." unless name

      yield name, database
    end