model-writtenrun 3954 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jacob Champion reported that pg_dump demanded SELECT privileges to lock an internal extension table whose contents would not be dumped, and proposed skipping policy-related locks when no policies existed #1.
- Tom Lane challenged both the incomplete fix and the cost of adding subqueries before acquiring table locks #2; Jacob explained the cloud privilege constraints and initially measured modest overhead, but subsequently found a pathological policy distribution that made the query stall #3 #4 #5.
- Jacob moved the proposal to pgsql-hackers with a regression test and a replacement implementation that scanned pg_policy separately and recorded table identities in the client-side catalog map #5.
- Akshat Jaimini reported successful testing, while Andrew Dunstan considered the approach reasonable and suggested that avoiding later work might offset its cost #6 #7; Jacob subsequently completed a function comment and supplied PostgreSQL 11 backport patches without changing the development-branch logic #9.
- Tom rejected the additional catalog-map state and pre-lock scan, proposing instead that ordinary dumps omit extension members' policies and security labels because PostgreSQL lacked infrastructure for distinguishing their initial settings from user changes #10; his replacement patch preserved Jacob's regression tests #11.
- Stephen Frost pointed out that the replacement would lose user-added policies during dump/reload #12; Tom argued that such modifications were unsupported and that existing behavior also caused privilege failures and restored potentially inappropriate properties across extension versions #13.
- Jacob asked whether the behavioral change could be backported, and Tom distinguished straightforward code portability from uncertainty about changing minor-release behavior #14 #15; Tom later announced his intention to commit and backpatch, and Jacob supported the approach #16 #17.
- The supplied commits 891afa84c2 and a70f2a57f2 represent the same landed change from #11, with only branch-context adaptations, and record backpatching to all supported branches; ordinary dumps retain extension-member ACL handling while binary-upgrade dumps retain all properties.
- The thread ends with Jacob thanking Tom after the landing, with no further patch or unresolved implementation work posted #18.