- Notifications
You must be signed in to change notification settings - Fork5
Commit49a08ca
committed
Adjust the permissions required for COMMENT ON ROLE.
Formerly, any member of a role could change the role's comment, as ofcourse could superusers; but holders of CREATEROLE privilege could not,unless they were also members. This led to the odd situation that aCREATEROLE holder could create a role but then could not comment on it.It also seems a bit dubious to let an unprivileged user change his owncomment, let alone those of group roles he belongs to. So, change therule to be "you must be superuser to comment on a superuser role, orhold CREATEROLE to comment on non-superuser roles". This is the sameas the privilege check for creating/dropping roles, and thus fits muchbetter with the rule for other object types, namely that only the ownerof an object can comment on it.In passing, clean up the documentation for COMMENT a little bit.Per complaint from Owen Jacobson and subsequent discussion.1 parentc290476 commit49a08ca
File tree
6 files changed
+91
-46
lines changed- doc/src/sgml
- ref
- src
- backend
- catalog
- commands
- include/utils
6 files changed
+91
-46
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13588 | 13588 |
| |
13589 | 13589 |
| |
13590 | 13590 |
| |
13591 |
| - | |
13592 |
| - | |
13593 |
| - | |
13594 |
| - | |
| 13591 | + | |
| 13592 | + | |
| 13593 | + | |
| 13594 | + | |
13595 | 13595 |
| |
13596 | 13596 |
| |
13597 | 13597 |
| |
| |||
13610 | 13610 |
| |
13611 | 13611 |
| |
13612 | 13612 |
| |
13613 |
| - | |
13614 |
| - | |
| 13613 | + | |
| 13614 | + | |
13615 | 13615 |
| |
13616 | 13616 |
| |
13617 | 13617 |
| |
|
Lines changed: 33 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
73 | 80 |
| |
74 | 81 |
| |
75 | 82 |
| |
| |||
93 | 100 |
| |
94 | 101 |
| |
95 | 102 |
| |
96 |
| - | |
| 103 | + | |
97 | 104 |
| |
98 | 105 |
| |
99 | 106 |
| |
100 | 107 |
| |
101 | 108 |
| |
102 |
| - | |
103 |
| - | |
104 |
| - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
105 | 112 |
| |
106 | 113 |
| |
107 | 114 |
| |
| |||
137 | 144 |
| |
138 | 145 |
| |
139 | 146 |
| |
140 |
| - | |
141 | 147 |
| |
142 | 148 |
| |
143 | 149 |
| |
| |||
154 | 160 |
| |
155 | 161 |
| |
156 | 162 |
| |
157 |
| - | |
158 | 163 |
| |
159 | 164 |
| |
160 | 165 |
| |
| |||
167 | 172 |
| |
168 | 173 |
| |
169 | 174 |
| |
170 |
| - | |
171 | 175 |
| |
172 | 176 |
| |
173 | 177 |
| |
| |||
185 | 189 |
| |
186 | 190 |
| |
187 | 191 |
| |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
188 | 204 |
| |
189 | 205 |
| |
190 |
| - | |
191 | 206 |
| |
192 | 207 |
| |
193 | 208 |
| |
| |||
212 | 227 |
| |
213 | 228 |
| |
214 | 229 |
| |
215 |
| - | |
| 230 | + | |
216 | 231 |
| |
217 |
| - | |
218 |
| - | |
219 |
| - | |
220 |
| - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
221 | 235 |
| |
222 | 236 |
| |
223 | 237 |
| |
| |||
257 | 271 |
| |
258 | 272 |
| |
259 | 273 |
| |
260 |
| - | |
| 274 | + | |
261 | 275 |
| |
262 | 276 |
| |
263 | 277 |
| |
|
Lines changed: 30 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4735 | 4735 |
| |
4736 | 4736 |
| |
4737 | 4737 |
| |
| 4738 | + | |
| 4739 | + | |
| 4740 | + | |
| 4741 | + | |
| 4742 | + | |
| 4743 | + | |
| 4744 | + | |
| 4745 | + | |
| 4746 | + | |
| 4747 | + | |
| 4748 | + | |
| 4749 | + | |
| 4750 | + | |
| 4751 | + | |
| 4752 | + | |
| 4753 | + | |
| 4754 | + | |
| 4755 | + | |
| 4756 | + | |
| 4757 | + | |
| 4758 | + | |
| 4759 | + | |
| 4760 | + | |
| 4761 | + | |
| 4762 | + | |
| 4763 | + | |
| 4764 | + | |
| 4765 | + | |
| 4766 | + | |
| 4767 | + | |
4738 | 4768 |
| |
4739 | 4769 |
| |
4740 | 4770 |
| |
|
Lines changed: 20 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
808 | 808 |
| |
809 | 809 |
| |
810 | 810 |
| |
811 |
| - | |
812 |
| - | |
813 |
| - | |
814 |
| - | |
815 |
| - | |
816 |
| - | |
817 |
| - | |
818 | 811 |
| |
819 | 812 |
| |
820 | 813 |
| |
| |||
825 | 818 |
| |
826 | 819 |
| |
827 | 820 |
| |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
828 | 841 |
| |
829 | 842 |
| |
830 | 843 |
| |
|
Lines changed: 1 addition & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
| 61 | + | |
75 | 62 |
| |
76 | 63 |
| |
77 | 64 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
317 | 317 |
| |
318 | 318 |
| |
319 | 319 |
| |
| 320 | + | |
320 | 321 |
| |
321 | 322 |
|
0 commit comments
Comments
(0)