I am trying on the server side to restrict a user connecting on LAN to seeing and accessing 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 the pg_hba.conf file, and even after that, it still does not work.
Please help with a solution on how to fix this issue so that any user accessing a database in a server with a list of databases can see and access only the required database.