model-writtenrun 443 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Xingwang Xiang reported that 32,768 trigger arguments overflow tgnargs to -32768, causing runtime argument loss and omission from deparsed definitions, with a reproducer and a working 32,767-argument comparison #1.
- Kyotaro Horiguchi supplied a patch that keeps the argument count as int until checking the existing 16-bit limit, choosing to enforce that limit rather than increase it and noting applicability back to PostgreSQL 14 #2.
- Michael Paquier endorsed the fix and checked other catalogs with smallint counts, finding triggers appeared to be the only missing protection of this kind #3.
- Michael Paquier committed the patch from #2 as b99b74144f, substituting PG_INT16_MAX, cleaning whitespace, and expanding the commit explanation, with backpatching through PostgreSQL 14.
- Michael Paquier closed the thread by confirming the fix had landed and identifying the macro substitution and two whitespace issues he corrected; no further work remained under discussion #4.