forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc559f61
committed
Fix an ALTER GROUP ... DROP USER error message.
This error message stated the privileges required to add a memberto a group even if the user was trying to drop a member:postgres=> alter group a drop user b;ERROR: permission denied to alter roleDETAIL: Only roles with the ADMIN option on role "a" may add members.Since the required privileges for both operations are the same, wecan fix this by modifying the message to mention both adding anddropping members:postgres=> alter group a drop user b;ERROR: permission denied to alter roleDETAIL: Only roles with the ADMIN option on role "a" may add or drop members.Author: ChangAo ChenReviewed-by: Tom LaneDiscussion:https://postgr.es/m/tencent_FAA0D00E3514AAF0BBB6322542A6094FEF05%40qq.comBackpatch-through: 161 parentffd9b81 commitc559f61
File tree
3 files changed
+12
-2
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+12
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
817 | 817 |
| |
818 | 818 |
| |
819 | 819 |
| |
820 |
| - | |
| 820 | + | |
821 | 821 |
| |
822 | 822 |
| |
823 | 823 |
| |
824 | 824 |
| |
825 |
| - | |
| 825 | + | |
826 | 826 |
| |
827 | 827 |
| |
828 | 828 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
219 | 226 |
| |
220 | 227 |
| |
221 | 228 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
169 | 169 |
| |
170 | 170 |
| |
171 | 171 |
| |
| 172 | + | |
| 173 | + | |
| 174 | + | |
172 | 175 |
| |
173 | 176 |
| |
174 | 177 |
| |
|
0 commit comments
Comments
(0)