model-writtenrun 7384 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Sven Klemm reported that ALTER TABLE subcommands could record an identity sequence modification and then drop that sequence, causing pg_event_trigger_ddl_commands() to fail during object lookup; his patch skipped objects whose identity could no longer be found #1.
- Alvaro Herrera acknowledged the bug but expressed reservations about ignoring dropped objects, without having reviewed the patch #3.
- Aleksander Alekseev confirmed that the patch fixed the failure, revised its comment, and added a regression test #4.
- Michael Paquier argued that ignoring missing objects followed existing DROP TABLE behavior, and Alvaro Herrera accepted that precedent; their discussion concluded that supporting older releases would require invasive lookup changes, while erasing previously recorded events would be fragile #5 #6 #7.
- Michael Paquier retained the skipping approach, checked object identity before looking up its type, and consolidated and expanded the relation regression tests; he recommended leaving stable branches unchanged because the necessary APIs were unavailable and backporting them was too risky #8.
- Aleksander Alekseev proposed making the type lookup reject missing objects #9, but Michael Paquier retained the permissive lookup and identified an unreachable NULL-return path in getObjectTypeDescription(), proposing an assertion instead #10.
- The assertion cleanup landed separately as b56b83aa0d, implementing the proposal from #10 without an attached patchset.
- The main fix landed as 2d689babe3 from #8 with only comment punctuation changed; Michael Paquier confirmed both commits in the final message, completing the development-branch work without backpatching #11.