model-writtenrun 3125 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeff Davis noticed an existing comment in selfuncs.c explaining that a second strxfrm() call can return a smaller size, while some pg_strnxfrm() callers incorrectly required equal sizes #1.
- Jeff proposed relaxing four checks to reject only larger results and documenting that transformation size estimates can exceed the space needed, initially requesting a backport to PostgreSQL 17 #1.
- Heikki Linnakangas endorsed the patch and requested a comment in pg_strnxfrm() itself #2.
- Jeff committed the patch as 679c5084cf, preserving its logic while adding comments at the four checks and refining the function documentation from #1.
- Jeff confirmed that the change had landed and was backported through PostgreSQL 16, correcting his original backport target and leaving no outstanding work in the thread #3.