I created a free postgres database on Heroku, when connecting it to my pgAdmin4 the connection is done normally, however, thousands of databases appear along with mine. All the databases that appear I don't have access, only 1 that I have access (mine). see the image:
-
If those databases do not belong to you (or the Heroku account holder), then I would file a bug with Heroku as this would be an excellent way to reduce the amount of effort required to gain access to a database I don't have any business knowing about ... 🤔– matigoJul 5, 2021 at 2:19
1 Answer
You probably cannot set pgAdmin4 to see only databases which you have access to, but there is a workaround - you can set it to see only selected databases.
Right button on your server, select Properties
, tab Advanced
, and add the names of the databases you want to see in the DB restriction
field. If the field contains data, the other databases disappear from the list.
Warning: once the connection is saved, the field becomes read-only :(