model-writtenrun 2463 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- yang lei reported a PostgreSQL 16.8 segmentation fault when unnest() consumed an ARRAY() subquery over an oidvector column, providing a reproducer #1.
- Tom Lane traced the crash to inconsistent treatment of vector types by the parser and initArrayResultAny(), and submitted a fix restoring scalar treatment so ARRAY() produces genuine vector arrays #2.
- The same submission included a second patch making ARRAY[] constructors treat int2vector and oidvector as scalars, with regression tests covering both fixes; Tom initially questioned backpatching this second change because he had demonstrated incorrect results but no crash #2.
- Tom subsequently decided both changes warranted backpatching, reasoning that users depending on the previous ARRAY[] behavior would likely already have reported its broken cases #3.
- Both patches landed together without implementation changes in 474aee3dfe, with backports through PostgreSQL 13, and Tom's final message confirmed the combined push with no work left pending #3.