Re: set role command
Laurenz Albe <laurenz.albe@cybertec.at>
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Calvin Guo <newoakllc2023@gmail.com>, pg254kl@georgiou.vip
Cc: "pgsql-generallists.postgresql.org" <pgsql-general@lists.postgresql.org>
Date: 2025-11-27T06:56:46Z
Lists: pgsql-general
On Thu, 2025-11-27 at 14:25 +0800, Calvin Guo wrote: > create role usera_sandbox in group usera; > \c - usera_sandbox > but what will happen if I then issue: > reset role? Nothing will happen. \c disconnects the superuser session and establishes a new connection, so there is nothing to reset to. > Seems like once I connect as a super user, there is no way for drop the previledge. Precisely. That's why you don't connect as a superuser, unless you need to for administrative purposes. Yours, Laurenz Albe