I am trying on the server side to restrict a user connecting on LAN to be able to see and access only 1 database from the list of databases I have in my system.
How can I achieve this,
I have tried
host db_name all (connecting_ip)/32 krb5
host db_name all (connecting_ip)/32 ident
host db_name all (connecting_ip)/32 crypt
host db_name all (connecting_ip)/32 trust
These parameters have been changed in pg_hba.conf file and even after doing it still does not work.
Please help with a solution on how to fix this issue where any user connecting to access a database in a server that has list of databases can see and access only the required database