model-writtenrun 2927 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alvaro Herrera demonstrated that inheriting from 65,537 parents could truncate a column's inheritance count to one, permitting a subsequent disinherit-and-drop sequence to break parent queries, and proposed int16 counters with checked increments after a related observation by Jian He #1.
- Tom Lane endorsed the fix for master, advised against backpatching because the proposed padding would not preserve ABI on every endianness and the failure required deliberate abuse, and agreed that a regression test creating thousands of parents was too expensive #2.
- Andres Freund discouraged switching the counters to unsigned types because SQL lacked unsigned-number support and the existing range was sufficient for practical use #3.
- jian he supplied a follow-up attachment based on the original patch, proposing int16 typing for CreateConstraintEntry and its callers, caller-comment cleanup, and narrowing Constraint.inhcount; this attachment is described in the discussion but is not an indexed patchset #4.
- Alvaro confirmed that narrowing the catalog counters during PostgreSQL 16 development had introduced the mismatch #5, then committed the original patch with the additional type cleanup, removal of the unused Constraint.inhcount field instead of narrowing it, and a catalog-version bump as fd64ed60b6, crediting himself and jian he as co-authors.
- Alvaro closed the thread by confirming the push and explaining that a technical glitch had prevented the commit notification; the fix was complete on master, with backpatching deliberately omitted #6.