Re: set role command - Mailing list pgsql-general

From Peter J. Holzer
Subject Re: set role command
Date
Msg-id tquqmtevx6v7lzxlifznrisnlnfoc5u44fbpltkupfj2ay6dve@xdovetnlvk7h
Whole thread Raw
In response to Re: set role command  (pg254kl@georgiou.vip)
List pgsql-general
On 2025-11-24 17:30:14 -0500, pg254kl@georgiou.vip wrote:
> Just because you did set role does not mean you lost your superuser privileges,
> it's correct behavior.
>
> If you want to impersonate in a permissions sandbox it's easy:
>
> create role usera_sandbox in group usera;
> \c - usera_sandbox

But that just disconnects and reconnects as the new user. So you have to
be able to authenticate as that user.

        hjp

--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachment

pgsql-general by date:

Previous
From: Bernice Southey
Date:
Subject: Re: Selecting all variations of job title in a list
Next
From: Andrus
Date:
Subject: How to use index in simple select