ALTER ROLE documentation improvement

From: Yurii Rashkovskii <yrashk(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: ALTER ROLE documentation improvement
Date: 2023-09-15 18:46:35
Message-ID: CA+RLCQzSx_eTC2Fch0EzeNHD3zFUcPvBYOoB+pPScFLch1DEQw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

It appears that 16.0 improved some of the checks in ALTER ROLE. Previously,
it was possible to do the following (assuming current_user is a bootstrap
user):

```
ALTER ROLE current_user NOSUPERUSER
```

As of 16.0, this produces an error:

```
ERROR: permission denied to alter role
DETAIL: The bootstrap user must have the SUPERUSER attribute.
```

The attached patch documents this behavior by providing a bit more
clarification to the following statement:

"Database superusers can change any of these settings for any role."

--
Y.

Attachment Content-Type Size
0001-Improve-ALTER-ROLE-documentation-to-document-current.patch application/octet-stream 1.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message stepan rutz 2023-09-15 20:09:41 Re: Detoasting optionally to make Explain-Analyze less misleading
Previous Message Jeff Davis 2023-09-15 18:31:10 Re: Faster "SET search_path"