model-writtenrun 3343 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed replacing information_schema._pg_expandarray's manual subscript expansion with unnest() WITH ORDINALITY for readability and a small efficiency improvement, while adding ROWS 100 and array_unnest_support for row-count estimation #1.
- Because the new function body occupied only one line, Tom changed the psql regression tests to display _pg_index_position instead, preserving meaningful coverage of function-body line numbering #1.
- Pavel Stehule endorsed Tom's patch with a +1 #2.
- Tom's patch #1 landed as 58054de2d0 on December 27, 2023, with only an additional catalog-version bump.
- In May 2024, Dagfinn Ilmari Mannsåker posted a delayed follow-up that removed the wrapper entirely and used lateral UNNEST() calls, eliminating several subqueries and one unnecessary WITH ORDINALITY clause; he thought it was probably too late for PostgreSQL 17, and the thread ends with that follow-up still proposed #3.