model-writtenrun 5851 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that altering a partitioned table's column type could crash the server when displaying another table's constraint containing its composite rowtype; the equivalent alteration of an ordinary table was correctly rejected #1.
- Tom Lane identified the missing dependency check for partitioned tables and initially questioned whether rowtype constants in constraints also needed protection #2.
- Tom Lane traced the omission to ATRewriteTables skipping relations without storage and proposed broadening the early check in ATPrepAlterColumnType; moving the rewrite-stage check was insufficient because some alterations never set the rewrite flag #3.
- Tom Lane's patch checked dependencies for all relations without storage and added regression cases for partitioned-table rowtypes and expression usage, demonstrating that expression type mismatches are caught separately #3.
- The thread ended with the patch submission, which subsequently landed unchanged as 7ead9925ff and was backpatched to all supported branches; no independent patch review or remaining work appears in the thread #3.