forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf3f6a14
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 parent5912bf7 commitf3f6a14
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 changedLines changed: 15 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1378 | 1378 |
| |
1379 | 1379 |
| |
1380 | 1380 |
| |
1381 |
| - | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
1382 | 1384 |
| |
1383 | 1385 |
| |
1384 | 1386 |
| |
| |||
2909 | 2911 |
| |
2910 | 2912 |
| |
2911 | 2913 |
| |
| 2914 | + | |
2912 | 2915 |
| |
2913 | 2916 |
| |
2914 | 2917 |
| |
| |||
2922 | 2925 |
| |
2923 | 2926 |
| |
2924 | 2927 |
| |
2925 |
| - | |
2926 |
| - | |
2927 |
| - | |
2928 |
| - | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
2929 | 2938 |
| |
2930 | 2939 |
| |
2931 |
| - | |
| 2940 | + | |
2932 | 2941 |
| |
2933 | 2942 |
| |
2934 | 2943 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + |
Lines changed: 5 additions & 0 deletions
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)