model-writtenrun 9603 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tomas Vondra reported quadratic cleanup after creating or dropping many relations in one transaction and proposed changing close-loop ordering in #1.
- Takeshi Ideriha questioned the ordering assumptions in #2, and Tomas supplied diagnostic instrumentation and recovery logs demonstrating repeated long list traversals in #3.
- After encountering the same problem in the checkpointer, where hash-table iteration makes closing order unpredictable, Tomas replaced the ordering workaround with a manually maintained doubly linked list in #4.
- Alvaro Herrera suggested using PostgreSQL's dlist API in #5; Robert Haas favored keeping the smaller change in #6, while Tomas subsequently adopted dlist and argued for backpatching the fix in #10.
- Robert questioned whether constant-time lookup was needed in #11, and Tomas explained in #12 that lookup already used a hash table and the remaining cost was finding the predecessor during singly linked removal; Robert accepted the clarification in #13.
- Tomas polished the patch in #14, removing unnecessary list wrappers after checking their callers and undoing the ordering optimization in DropRelationFiles(), although he remained uncertain why that older optimization had helped previous tests.
- The final patch from #14 landed unchanged as 6ca015f9f0, and Tomas closed the thread by confirming the commit and backpatches in #15.