Is there a way for a non-admin PostgreSQL user to discover which databases it can access on the server it is connected to, more specifically which of these databases have a table with a specific name that the user has enough permissions to see (and possibly query)?
As far as I can tell, the MySQL equivalent would be something like:
SELECT t.TABLE_SCHEMA FROM information_schema.`TABLES` AS t
WHERE t.TABLE_NAME = 'the_table_name'
(This would be for PostgreSQL 8.4 preferably, but I'm also interested in solutions for 9.1 if this has changed.)