model-writtenrun 9719 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Cassidy reported a pg_dump section-order warning on PostgreSQL 11.1 and supplied a reproducer involving materialized views and a primary key in #1.
- Alvaro Herrera reproduced the problem and attached diagnostic instrumentation that exposed a ten-object dependency loop in #2.
- Tom Lane explained that dependent materialized views were ordered correctly but were not all marked postponed_def, and supplied a fix marking each materialized view whose pre-data dependency was removed in #3; he also suggested CREATE OR REPLACE support for materialized views as a future improvement.
- Tom Lane committed #3 unchanged as 6e4d45b5f6 and backpatched the fix to all supported versions, addressing both the warning and potential selective-restore errors.
- Tom Cassidy tested the already-patched stable branch against both databases, finding no warnings and no SQL output changes beyond the version string in #4; Tom Lane confirmed the commit and acknowledged the successful testing in #5, leaving the reported bug resolved.