| From: | "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at> |
|---|---|
| To: | pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | Re: set role command |
| Date: | 2025-11-28 21:41:40 |
| Message-ID: | tquqmtevx6v7lzxlifznrisnlnfoc5u44fbpltkupfj2ay6dve@xdovetnlvk7h |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 2025-11-24 17:30:14 -0500, pg254kl(at)georgiou(dot)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(at)hjp(dot)at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
| From | Date | Subject | |
|---|---|---|---|
| Next Message | jian he | 2025-11-29 02:46:35 | Re: Emitting JSON to file using COPY TO |
| Previous Message | Bernice Southey | 2025-11-28 12:20:37 | Re: Selecting all variations of job title in a list |