forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit953cf49
committed
doc: Note exceptions for SET ROLE's effect on privilege checks.
The documentation for SET ROLE states that superusers who switch toa non-superuser role lose their superuser privileges. While thisis true for most commands, there are exceptions such as SET ROLEand SET SESSION AUTHORIZATION, which continue to use the currentsession user and the authenticated user, respectively.Furthermore, the description of this command already describes itseffect, so it is arguably unnecessary to include this special case.This commit removes the note about the superuser case and adds asentence about the aforementioned exceptions to the description.Co-authored-by: Yurii RashkovskiiReviewed-by: Shubham Khanna, Robert Haas, Michael PaquierDiscussion:https://postgr.es/m/CA%2BRLCQysHtME0znk2KUMJN343ksboSRQSU-hCnOjesX6VK300Q%40mail.gmail.com1 parente0df808 commit953cf49
1 file changed
+4
-6
lines changedLines changed: 4 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 |
| |
42 | 45 |
| |
43 | 46 |
| |
| |||
88 | 91 |
| |
89 | 92 |
| |
90 | 93 |
| |
91 |
| - | |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 | 94 |
| |
97 | 95 |
| |
98 | 96 |
| |
|
0 commit comments
Comments
(0)