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

From: Priancka Chatz <pc9926(at)gmail(dot)com>
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:05:23
Message-ID: CANnOdgZegZ=MjmGG1xOF0_h_EjpuQ_NSpYoqdN7Gnt-+ovOtVg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You can use pg_dumpall -g to get user information for the cluster.

Regards,
Priyanka

On Thu, 12 Oct 2023 at 3:46 PM, Jana Mihalidesová <Mihi(dot)Jana(at)seznam(dot)cz>
wrote:

> Hi,
>
> 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.
> I know how to list user's privileges in the individual database, but for
> all databases...
>
> Thanks for the advice.
> Jana
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2023-10-12 14:25:02 Re: List users privileges for whole cluster/all databases in the cluster
Previous Message Laurenz Albe 2023-10-12 13:43:54 Re: Question About PostgreSQL Extensibility