forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9cf4beb
committed
Clean out column-level pg_init_privs entries when dropping tables.
DeleteInitPrivs did not get the memo about how, when dropping awhole object (with subid == 0), you should drop entries relatingto its sub-objects too. This is visible in the test_pg_dump testcase if one drops the extension at the end: the entry forGRANT SELECT(col1) ON regress_pg_dump_table TO public;was still present in pg_init_privs afterwards, although it waspointing to a dangling table OID.Noted while fooling with a fix for REASSIGN OWNED for pg_init_privsentries. This bug is aboriginal in the pg_init_privs featurethough, and there seems no reason not to back-patch the fix.1 parent086ecd1 commit9cf4beb
File tree
3 files changed
+27
-6
lines changed- src
- backend/catalog
- test/modules/test_pg_dump
- expected
- sql
3 files changed
+27
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1382 | 1382 | | |
1383 | 1383 | | |
1384 | 1384 | | |
1385 | | - | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
1386 | 1388 | | |
1387 | 1389 | | |
1388 | 1390 | | |
| |||
2992 | 2994 | | |
2993 | 2995 | | |
2994 | 2996 | | |
| 2997 | + | |
2995 | 2998 | | |
2996 | 2999 | | |
2997 | 3000 | | |
| |||
3005 | 3008 | | |
3006 | 3009 | | |
3007 | 3010 | | |
3008 | | - | |
3009 | | - | |
3010 | | - | |
3011 | | - | |
| 3011 | + | |
| 3012 | + | |
| 3013 | + | |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
| 3017 | + | |
| 3018 | + | |
| 3019 | + | |
| 3020 | + | |
3012 | 3021 | | |
3013 | 3022 | | |
3014 | | - | |
| 3023 | + | |
3015 | 3024 | | |
3016 | 3025 | | |
3017 | 3026 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
0 commit comments
Comments
(0)