Enabling remote access for Postgresql database?

October 15, 2014 2.1k views

I am following this guide and got to setting up postgres and creating a database for my app. I am at the step "Fill in Application Data", where I have a host and a port for my app's db.
Now I want to connect to my database from my local machine using pgadmin, but it seems I am unable to connect using the information that I get from calling dokku postgresql:info <appname>: I get the error "Server doesn't listen." I tried following the directions here but it seems like those settings are for the main postgres app and not for my specific database. How can I enable remote access for my specific database?

1 Answer

Generally this can be done by restricting the user account you are using to connect to not have CONNECT permissions to other databases. It sounds like you have everything else set up correctly.

There is some more detail on a couple different ways to restrict users to a single DB here.

Have another answer? Share your knowledge.