forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit198de79
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 parentc7de5a6 commit198de79
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 | |
---|---|---|---|
| |||
1328 | 1328 |
| |
1329 | 1329 |
| |
1330 | 1330 |
| |
1331 |
| - | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
1332 | 1334 |
| |
1333 | 1335 |
| |
1334 | 1336 |
| |
| |||
2887 | 2889 |
| |
2888 | 2890 |
| |
2889 | 2891 |
| |
| 2892 | + | |
2890 | 2893 |
| |
2891 | 2894 |
| |
2892 | 2895 |
| |
| |||
2900 | 2903 |
| |
2901 | 2904 |
| |
2902 | 2905 |
| |
2903 |
| - | |
2904 |
| - | |
2905 |
| - | |
2906 |
| - | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
2907 | 2916 |
| |
2908 | 2917 |
| |
2909 |
| - | |
| 2918 | + | |
2910 | 2919 |
| |
2911 | 2920 |
| |
2912 | 2921 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + |
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)