From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexander Korotkov <aekorotkov@gmail.com>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: nathandbossart@gmail.com
Cc: steve@supabase.io
Cc: pgsql-hackers@postgresql.org
Subject: Re: Allow placeholders in ALTER ROLE w/o superuser
Date: Fri, 18 Nov 2022 16:41:46 -0500
Message-ID: <2271988.1668807706@sss.pgh.pa.us> (raw)
In-Reply-To: <2271312.1668807199@sss.pgh.pa.us>
References: <20220719000305.GA3714057@nathanxps13>
<CAGRrpzY35LazKYQUZ2dLnXWE4fW0FVLA5E5jrbCMbXJYLm+mqg@mail.gmail.com>
<20220719165339.GB3716275@nathanxps13>
<20220720.152836.1442103646840823302.horikyota.ntt@gmail.com>
<1732511.1658332210@sss.pgh.pa.us>
<CAPpHfds03xLK34XeK_fFd0ubD_wf+K1gnC-DhpqUuLvbqsfUZQ@mail.gmail.com>
<2271312.1668807199@sss.pgh.pa.us>
... BTW, re-reading the commit message for a0ffa885e:
One caveat is that PGC_USERSET GUCs are unaffected by the SET privilege
--- one could wish that those were handled by a revocable grant to
PUBLIC, but they are not, because we couldn't make it robust enough
for GUCs defined by extensions.
it suddenly struck me to wonder if the later 13d838815 changed the
situation enough to allow revisiting that problem, and/or if storing
the source role's OID in pg_db_role_setting would help.
I don't immediately recall all the problems that led us to leave USERSET
GUCs out of the feature, so maybe this is nuts; but maybe it isn't.
It'd be worth considering if we're trying to improve matters here.
regards, tom lane
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, aekorotkov@gmail.com, horikyota.ntt@gmail.com, nathandbossart@gmail.com, steve@supabase.io
Subject: Re: Allow placeholders in ALTER ROLE w/o superuser
In-Reply-To: <2271988.1668807706@sss.pgh.pa.us>
References: <20220719000305.GA3714057@nathanxps13> <CAGRrpzY35LazKYQUZ2dLnXWE4fW0FVLA5E5jrbCMbXJYLm+mqg@mail.gmail.com> <20220719165339.GB3716275@nathanxps13> <20220720.152836.1442103646840823302.horikyota.ntt@gmail.com> <1732511.1658332210@sss.pgh.pa.us> <CAPpHfds03xLK34XeK_fFd0ubD_wf+K1gnC-DhpqUuLvbqsfUZQ@mail.gmail.com> <2271312.1668807199@sss.pgh.pa.us> <2271988.1668807706@sss.pgh.pa.us>
* 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