From: Tomas Pospisek <tpo2@sourcepole.ch>
To: Sai Ch <chspk2020@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Reg: User creation script/List of privileges
Date: Wed, 30 Mar 2022 18:19:59 +0200
Message-ID: <3cd1d627-bfe4-9112-0327-2549909f750f@sourcepole.ch> (raw)
In-Reply-To: <CAEEjcGE=Sk=NuD-eBZWmtV4uqt8ENA4ZerHXuzdD4f80643pow@mail.gmail.com>
References: <CAEEjcGE=Sk=NuD-eBZWmtV4uqt8ENA4ZerHXuzdD4f80643pow@mail.gmail.com>
On 30.03.22 05:09, Sai Ch wrote:
> Hi Experts,
>
> I am looking for a query or possibility to generate all the privileges a
> user/role has.
>
> I need this to create a user/role from one database to another with
> exact same privileges.
>
> Kindly, share the query or way to proceed further.
>
> Thanks & Regards,
Maybe have a look at
https://github.com/tpo/little_shell_scripts/blob/master/psql_access_priv_decoder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tpo2@sourcepole.ch, chspk2020@gmail.com
Subject: Re: Reg: User creation script/List of privileges
In-Reply-To: <3cd1d627-bfe4-9112-0327-2549909f750f@sourcepole.ch>
References: <CAEEjcGE=Sk=NuD-eBZWmtV4uqt8ENA4ZerHXuzdD4f80643pow@mail.gmail.com> <3cd1d627-bfe4-9112-0327-2549909f750f@sourcepole.ch>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox