Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku pgAdmin4 hide databases which I am not allowed to access

As the title states, if I connect to my heroku posgresql DB via pgAdmin4 I see many other databases which I am not allowed to access.

I know there must be a restrction DB field somewhere but I cant find it.

In pgAdmin4 its not in the advanced tab as stated here:

StackOverflow similar Question pgAdmin3

like image 867
Roman Avatar asked Sep 09 '25 10:09

Roman


2 Answers

Actually, you can hide the rest of databases. When you fill in all credentials and connections parameters for the serevr, in order to avoid parsing so many databases, we have to white list only those databases we care about. Go to the Advanced tab and under db restriction copy the database name (it’s the same value as the Maintenance database field filled earlier). Remember - you have to set up this parameter BEFORE you hit "Save" as you cannot modify this field after saving. Source: https://medium.com/@vapurrmaid/getting-started-with-heroku-postgres-and-pgadmin-run-on-part-2-90d9499ed8fb

like image 168
Alex D Avatar answered Sep 11 '25 01:09

Alex D


You're probably using a Hobby-Dev or Hobby-Basic database. These used shared infrastructure. Although you can see the other (obfuscated) DB's in the list, you do not have access to them. To avoid seeing them, specify the DB name in your connection settings in pgAdmin.

like image 33
jmccartie Avatar answered Sep 11 '25 03:09

jmccartie