Postgresql, hide database from listing

postgresql

I'm have a problem.
On my server i have many users.
I want to each user can see only database to what have access.

This is possible?
How to solve this problem?

Thanks for help

Best Answer

This is not possible on the database layer (i.e. on psql), AFAIK. pgAdmin added a custom functionality to hide inaccessible databases, but this is nothing more than a custom SELECT .. WHERE query to keep the list of databases short.