- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit0ddb529
committed
Fix ALTER DEFAULT PRIVILEGES with duplicated objects
Specifying duplicated objects in this command would lead to uniqueconstraint violations in pg_default_acl or "tuple already updated byself" errors. Similarly to GRANT/REVOKE, increment the command ID aftereach subcommand processing to allow this case to work transparently.A regression test is added by tweaking one of the existing queries ofprivileges.sql to stress this case.Reported-by: AndrusAuthor: Michael PaquierReviewed-by: Álvaro HerreraDiscussion:https://postgr.es/m/ae2a7dc1-9d71-8cba-3bb9-e4cb7eb1f44e@hot.eeBackpatch-through: 9.51 parent0ab177b commit0ddb529
File tree
3 files changed
+7
-2
lines changed- src
- backend/catalog
- test/regress
- expected
- sql
3 files changed
+7
-2
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1293 | 1293 |
| |
1294 | 1294 |
| |
1295 | 1295 |
| |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
1296 | 1299 |
| |
1297 | 1300 |
| |
1298 | 1301 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1563 | 1563 |
| |
1564 | 1564 |
| |
1565 | 1565 |
| |
1566 |
| - | |
| 1566 | + | |
| 1567 | + | |
1567 | 1568 |
| |
1568 | 1569 |
| |
1569 | 1570 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
933 | 933 |
| |
934 | 934 |
| |
935 | 935 |
| |
936 |
| - | |
| 936 | + | |
| 937 | + | |
937 | 938 |
| |
938 | 939 |
| |
939 | 940 |
| |
|
0 commit comments
Comments
(0)