aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-06-14 16:20:35 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2024-06-14 16:20:35 -0400
commit198de79612f04f45320781d0a57ee77d9043d0c2 (patch)
tree6aacfdcb2781643439df270c017bbc8ad09fd6c0 /src/backend/executor/nodeModifyTable.c
parentc7de5a654567ffbd0eef1d6d2fb8d3fa2b5c5dee (diff)
downloadpostgresql-198de79612f04f45320781d0a57ee77d9043d0c2.tar.gz
postgresql-198de79612f04f45320781d0a57ee77d9043d0c2.zip
Clean out column-level pg_init_privs entries when dropping tables.
DeleteInitPrivs did not get the memo about how, when dropping a whole object (with subid == 0), you should drop entries relating to its sub-objects too. This is visible in the test_pg_dump test case if one drops the extension at the end: the entry for GRANT SELECT(col1) ON regress_pg_dump_table TO public; was still present in pg_init_privs afterwards, although it was pointing to a dangling table OID. Noted while fooling with a fix for REASSIGN OWNED for pg_init_privs entries. This bug is aboriginal in the pg_init_privs feature though, and there seems no reason not to back-patch the fix.
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions