pg.ddx.io pgsql-hackers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
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:33:19 -0500
Message-ID: <2271312.1668807199@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPpHfds03xLK34XeK_fFd0ubD_wf+K1gnC-DhpqUuLvbqsfUZQ@mail.gmail.com>
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>
Alexander Korotkov <aekorotkov@gmail.com> writes:
> This makes sense. But do we really need to store the OID of the role?
> validate_option_array_item() already checks if the placeholder option
> passes validation for PGC_SUSET. So, we can just save a flag
> indicating that this check was not successful. If so, then the value
> stored can be only used for PGC_USERSET. Do you think this would be
> correct?
Meh ... doesn't seem like much of an improvement. You still need
to store something that's not there now. This also seems to require
some shaky assumptions about decisions having been made when storing
still being valid later on. Given the possibility of granting or
revoking permissions for SET, I think we don't really want it to act
that way.
regards, tom lane
view thread (49+ messages) latest in thread
Message-ID: <2271312.1668807199@sss.pgh.pa.us> Permalink: ../2271312.1668807199@sss.pgh.pa.us/ Also on: postgresql.org/message-id/2271312.1668807199@sss.pgh.pa.us ·
reply
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: <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> * 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