model-writtenrun 9653 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier reported that pg_partition_tree(0) crashes and supplied an existence check returning NULL, with a regression test, in #1; Amit Langote endorsed the fix in #3.
- Tom Lane asked about unsupported relation kinds in #5, and Stephen Frost argued that returning NULL makes catalog-wide queries usable in #7; Michael adopted that behavior in #9.
- Stephen proposed exercising catalog functions across pg_class in #10, but Tom objected to the regression-test cost in #12; broader automated testing and a system-function style guide remained suggestions in #13.
- Stephen requested a clearer comment in #11, and Michael committed #9 with that wording adjustment as cc53123bcc, announcing completion in #20.
- After a gap of over two months, Alvaro Herrera pointed out that an SRF returning one all-NULL row was inappropriate and proposed an empty result in #23; Michael supplied the SRF_RETURN_DONE() correction in #24, and Amit supported its behavior in #25.
- Alvaro approved the SRF correction but also demonstrated inconsistent parent and level results for legacy multiple inheritance in #26, proposing that the functions accept only relations belonging to declarative partition trees.
- Michael committed #24 unchanged as 0f3cdf873e and announced it in #27, while suggesting that ordinary tables could still count as single-member partition trees.
- Amit supplied an eligibility check excluding ordinary and legacy-inheritance tables in #28, and Tom explained why ordinary tables must remain distinguishable from childless partitioned tables in #29; Michael adopted that approach in #30, which Tom reviewed in #31.
- Michael committed #30 as 3422955735, adding tests for childless partitioned tables and indexes as reported in #32, and acknowledged Amit's substantive code contribution in #34.
- Alvaro added explicit legacy-inheritance parent and child regression tests directly as d12fbe2f8e and announced them in #35; Michael acknowledged them in the final message #36, leaving all concrete fixes and follow-up tests committed.