aboutsummaryrefslogtreecommitdiff
path: root/doc/src/sgml/postgres.sgml
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2024-04-15 14:03:24 -0500
committerNathan Bossart <nathan@postgresql.org>2024-04-15 14:03:24 -0500
commit953cf49e166a1a64e1eaf2b091b84e02848b8c75 (patch)
treee3965ec38dc5082e0be5f2e4bdae23275e1ae017 /doc/src/sgml/postgres.sgml
parente0df80828abc0c01fcde123389032370b98f2015 (diff)
downloadpostgresql-953cf49e166a1a64e1eaf2b091b84e02848b8c75.tar.gz
postgresql-953cf49e166a1a64e1eaf2b091b84e02848b8c75.zip
doc: Note exceptions for SET ROLE's effect on privilege checks.
The documentation for SET ROLE states that superusers who switch to a non-superuser role lose their superuser privileges. While this is true for most commands, there are exceptions such as SET ROLE and SET SESSION AUTHORIZATION, which continue to use the current session user and the authenticated user, respectively. Furthermore, the description of this command already describes its effect, so it is arguably unnecessary to include this special case. This commit removes the note about the superuser case and adds a sentence about the aforementioned exceptions to the description. Co-authored-by: Yurii Rashkovskii Reviewed-by: Shubham Khanna, Robert Haas, Michael Paquier Discussion: https://postgr.es/m/CA%2BRLCQysHtME0znk2KUMJN343ksboSRQSU-hCnOjesX6VK300Q%40mail.gmail.com
Diffstat (limited to 'doc/src/sgml/postgres.sgml')
0 files changed, 0 insertions, 0 deletions