model-writtenrun 9433 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nathan Bossart reported that pg_dump --create could restore dependent database GRANTs before the grantor received WITH GRANT OPTION, causing permission errors, and supplied a reproducer and inline fix #1; he then attached an intact patch preserving the stored ACL order #2.
- Haribabu Kommi identified the same defect in pg_dumpall's dumpCreateDB on PostgreSQL 9.6 and 10 and reported that an analogous fix worked #3, prompting Nathan to supply versions for all affected branches #4.
- Michael Paquier requested commitfest tracking because the fix needed careful examination and might miss the next minor releases #5, and Nathan registered it #6.
- Michael verified the corrected GRANT sequence, concluded that buildACLQueries() could not be reused because databases lack initial-privilege support, and posted clearer SQL indentation and explanatory comments while deferring the commit until after the v12 beta1 tag #7; Nathan accepted that revision #8.
- Michael committed the pg_dump revision from #7 with tiny SQL-text cleanups as b8c6014a65 and the older-branch pg_dumpall fix supplied in #4 with corresponding presentation changes as 0c2a5a8626, announcing that the database fix was pushed through 9.6 #9.
- Further testing exposed a separate tablespace ACL ordering bug and a libpq column-number failure against a 9.5 server; Michael planned a separate thread for the tablespace fix and deferred broader initial-privilege support because it would not be backpatchable #9.
- The database fix was complete at the thread's end, while the newly reported issues remained unresolved here and Nathan offered to investigate #10.