model-writtenrun 4812 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Erik Rijkers reported logical replication failing with an int2vector element-limit error on development builds when tables combined many columns with generated columns, while his PostgreSQL 15 tests passed #1; he subsequently narrowed the failure to that combination #3.
- Alvaro Herrera identified the FUNC_MAX_ARGS restriction in int2vectorin #2, and Zhijie Hou explained that filtering generated columns exposed it during table synchronization, while explicitly publishing more than 100 columns could also trigger it on PostgreSQL 15 #4.
- Tom Lane considered removing the vector limits or switching logical replication to int2[] #5, then chose limit removal because int2vector was already effectively part of the replication protocol and proposed backpatching to PostgreSQL 15 #6.
- After Andres Freund raised allocation and size-limit concerns #7, Tom posted a patch that dynamically grows int2vector and oidvector allocations and removes their text and binary input limits, relying on existing allocation protections #8.
- Andres questioned whether a tuple-based limit and zero-filled reallocations would be preferable #9; Tom clarified the PostgreSQL 15 reproduction conditions #10 and defended removing the arbitrary limit and initializing only the array header #11, which Andres accepted #12.
- The final exchange left broader storage changes outside this fix: Tom explained that avoiding detoasting likely motivated plain storage for int2vector and oidvector, while questions about tsquery and gtsvector remained open #13.
- After the discussion, Tom committed #8 unchanged as 647fa50054, with a PostgreSQL 15 backport; the sole submitted patch was fully incorporated.