diff options
author | Nathan Bossart <nathan@postgresql.org> | 2025-01-09 17:10:13 -0600 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2025-01-09 17:10:13 -0600 |
commit | c559f61b547188f20ff9c54231f54cd9ef99b867 (patch) | |
tree | 874e3467e522ee67df39fcde1774089654818237 /src/backend/utils/adt/ruleutils.c | |
parent | ffd9b813465843c5eda04229a09d2167ed4a4a71 (diff) | |
download | postgresql-c559f61b547188f20ff9c54231f54cd9ef99b867.tar.gz postgresql-c559f61b547188f20ff9c54231f54cd9ef99b867.zip |
Fix an ALTER GROUP ... DROP USER error message.
This error message stated the privileges required to add a member
to a group even if the user was trying to drop a member:
postgres=> alter group a drop user b;
ERROR: permission denied to alter role
DETAIL: Only roles with the ADMIN option on role "a" may add members.
Since the required privileges for both operations are the same, we
can fix this by modifying the message to mention both adding and
dropping members:
postgres=> alter group a drop user b;
ERROR: permission denied to alter role
DETAIL: Only roles with the ADMIN option on role "a" may add or drop members.
Author: ChangAo Chen
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/tencent_FAA0D00E3514AAF0BBB6322542A6094FEF05%40qq.com
Backpatch-through: 16
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions