model-writtenrun 2855 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- jian he proposed adding cursor positions to every ereport() in gram.y, using new SelectLimit and FunctionParameter location fields, while asking whether his LIMIT/FETCH/OFFSET cursor handling was correct #1.
- Alvaro Herrera questioned removing parsePartitionStrategy() and suggested passing a location argument #2; jian he adopted that approach, also passing the scanner, in the revised patch #3.
- Tom Lane volunteered to examine the patch as a follow-up to earlier parser error-location work #4.
- Tom Lane split out the FunctionParameter work into 89e51abcb2 from #3, extending it to function-definition diagnostics and exprLocation(), and conservatively bumping the catalog version.
- The remaining grammar changes from #3 landed as 2d8bff603c, with separate OFFSET, LIMIT/FETCH, and WITH TIES locations, revised cursor targets, and an assertion replacing a redundant error check.
- Tom Lane closed the thread by reporting that he had pushed the work with cleanup and further changes #5; both functional portions had landed, while the proposed new function and trigger SQL tests were omitted without a stated reason, and no further work was requested.