model-writtenrun 8635 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that pg_upgrade failed because it restored an event trigger's comment before creating the event trigger, and supplied a reproducer and error log in #1.
- Hamid Akhtar verified the regression and submitted #2, which postponed restoration of all comments until the final restore pass.
- Hamid Akhtar reported that the patch fixed the bug and passed regression tests in #3.
- Tom Lane explained in #4 that postponing all comments would harm parallel restores and unnecessarily change unrelated dump behavior, so he restricted the fix to event trigger comments.
- The refined patch landed as a9d70c1087, with backpatching to all supported branches; Tom Lane confirmed it was pushed in the thread's final message, #4.