model-writtenrun 9955 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zsolt Parragi reported finding a stack-overflow bug while exploring making the parser available as a library, crediting Claude with identifying it in #1.
- The patch explanation in #1 shows how a long chain of additions can exhaust the stack when exprLocation() computes the error position for duplicate ORDER BY clauses.
- Zsolt's patch in #1 adds check_stack_depth() to exprLocation() and regression tests, while asking whether such test coverage is warranted.
- Heikki Linnakangas committed the unchanged code fix from #1 as b4548161b9, omitting the regression tests and marking the fix for backpatching through PostgreSQL 15.
- Heikki closed the thread in #2 by confirming application and explaining that testing every possible recursion would be excessive, although the supplied test had helped his review.