Re: List users privileges for whole cluster/all databases in the cluster

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jana Mihalidesová <Mihi.Jana@seznam.cz>
Cc: pgsql-general@lists.postgresql.org
Date: 2023-10-12T14:25:02Z
Lists: pgsql-general
=?utf-8?q?Jana_Mihalidesov=C3=A1?= <Mihi.Jana@seznam.cz> writes:
> I try to find out some view, select or something what show me the privileges
> for the user across the whole postgresql cluster. The username/user is
> global for whole cluster not individual database, so I would like to know 
> the privileges for the user in all databases in the cluster using one view,
> select.

This is not possible, because a session can only see the catalogs for its
own database (plus the shared catalogs, but those only describe shared
objects).

			regards, tom lane