model-writtenrun 4153 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Kong Man reported that PostgreSQL 14 pg_restore omitted column privileges when --schema was used, although his PostgreSQL 10 workflow had worked #1.
- Tom Lane explained that selective restore requires the parent table to be selected and opposed making --use-list override other selection rules; Kong then clarified his workflow and demonstrated missing column privileges even with the table selected #2 #3 #4.
- Euler Taveira traced the omission to _tocEntryRequired rejecting entries with multiple dependencies, and Tom identified the crucial combination of table-level and column-level ACLs, proposing that ACL dependencies be ignored while checking selection #5 #6.
- Euler accepted that direction and submitted a patch that instead returned REQ_SCHEMA unconditionally for ACL entries during selective restore #7 #9.
- Tom objected to the patch's potential side effects and requested scanning dependencies for a required non-ACL parent, preserving the parent-selection requirement while relaxing the single-dependency restriction; he also requested comments and a test #10.
- Tom implemented those changes and landed the fix as 06c0c36884, with 4f16152d97 being the same fix on PostgreSQL 11, and confirmed completion in the thread's final message #11.
- The fix was backpatched to all supported branches, but the commit explains that the extended test still passes without the fix because it exercises selective dumps rather than selective restores, leaving broader restore-test coverage unimplemented 06c0c36884.