Re: let's disallow ALTER ROLE bootstrap_superuser NOSUPERUSER

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: let's disallow ALTER ROLE bootstrap_superuser NOSUPERUSER
Date: 2022-07-26 18:40:49
Message-ID: CA+TgmoaR7TV-2NeMbkLx8LnUru=o6vqawjCMLm6H_CK77A0jkQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jul 21, 2022 at 1:27 PM Nathan Bossart <nathandbossart(at)gmail(dot)com> wrote:
> Given the current assumptions the code makes about the bootstrap superuser,
> I think it makes sense to disallow removing its superuser attribute (at
> least via ALTER ROLE NOSUPERUSER). It seems like there is much work to do
> before a no-superuser configuration could be formally supported. If/when
> such support materializes, it might be possible to remove the restriction
> that Robert is proposing.

Reaction to this patch seems tentatively positive so far, so I have
committed it. Maybe someone will still show up to complain ... but I
think it's a good change, so I hope not.

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-07-26 18:59:24 Re: let's disallow ALTER ROLE bootstrap_superuser NOSUPERUSER
Previous Message Robert Haas 2022-07-26 18:37:19 Re: making relfilenodes 56 bits