forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit136f87e
committed
Allow users with BYPASSRLS to alter their own passwords.
The intention in commit491c029 was to require superuserness tochange the BYPASSRLS property, but the actual effect of the codingin AlterRole() was to require superuserness to change anything at allabout a BYPASSRLS role. Other properties of a BYPASSRLS role shouldbe changeable under the same rules as for a normal role, though.Fix that, and also take care of some documentation omissions relatedto BYPASSRLS and REPLICATION role properties.Tom Lane and Stephen Frost, per bug report from Wolfgang Walther.Back-patch to all supported branches.Discussion:https://postgr.es/m/a5548a9f-89ee-3167-129d-162b5985fcf8@technowledgy.de1 parentd3befe9 commit136f87e
File tree
3 files changed
+18
-7
lines changed- doc/src/sgml/ref
- src/backend/commands
3 files changed
+18
-7
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
73 |
| - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
74 | 76 |
| |
75 | 77 |
| |
76 | 78 |
| |
|
Lines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
181 | 181 |
| |
182 | 182 |
| |
183 | 183 |
| |
| 184 | + | |
| 185 | + | |
184 | 186 |
| |
185 | 187 |
| |
186 | 188 |
| |
| |||
192 | 194 |
| |
193 | 195 |
| |
194 | 196 |
| |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
195 | 202 |
| |
196 | 203 |
| |
197 | 204 |
| |
198 |
| - | |
199 |
| - | |
| 205 | + | |
| 206 | + | |
200 | 207 |
| |
201 | 208 |
| |
202 | 209 |
| |
|
Lines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
709 | 709 |
| |
710 | 710 |
| |
711 | 711 |
| |
712 |
| - | |
713 |
| - | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
714 | 716 |
| |
715 | 717 |
| |
716 | 718 |
| |
| |||
726 | 728 |
| |
727 | 729 |
| |
728 | 730 |
| |
729 |
| - | |
| 731 | + | |
730 | 732 |
| |
731 | 733 |
| |
732 | 734 |
| |
| |||
735 | 737 |
| |
736 | 738 |
| |
737 | 739 |
| |
| 740 | + | |
738 | 741 |
| |
739 | 742 |
| |
740 | 743 |
| |
741 | 744 |
| |
742 |
| - | |
743 | 745 |
| |
744 | 746 |
| |
745 | 747 |
| |
|
0 commit comments
Comments
(0)