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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jana Mihalidesová <Mihi(dot)Jana(at)seznam(dot)cz>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: List users privileges for whole cluster/all databases in the cluster
Date: 2023-10-12 14:25:02
Message-ID: 1024108.1697120702@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?utf-8?q?Jana_Mihalidesov=C3=A1?= <Mihi(dot)Jana(at)seznam(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dominique Devienne 2023-10-12 14:49:50 Re: List users privileges for whole cluster/all databases in the cluster
Previous Message Priancka Chatz 2023-10-12 14:05:23 Re: List users privileges for whole cluster/all databases in the cluster