model-writtenrun 2113 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Sami Imseih opened #1 with a two-patch proposal to reduce pg_stat_statements churn from cursor-heavy workloads by normalizing cursor commands and tracking their underlying queries; #2 added missing tests and explained why FETCH cursor names should remain distinguishable.
- Michael Paquier supported normalizing FETCH sizes but questioned the diagnostic information lost by normalizing cursor names and requested distinct ALL handling in #3; Sami supplied a postgres_fdw example in #4, which Michael accepted as a problematic workload while retaining concerns about application-defined names in #5.
- Sami floated a separate cursor-utility tracking setting in #6, then narrowed the submitted work to FETCH-size normalization with grouping tests in #7, leaving the broader naming and underlying-query tracking proposals unresolved.
- Michael identified that size normalization also merged ALL with numeric fetches in #8; Sami proposed distinguishing additional direction keywords in #9 and implemented an explicit_direction field with revised tests in #10.
- Michael endorsed preserving distinctions such as LAST and requested a self-documenting enum in #11; Sami introduced FetchDirectionKeywords in #12, then moved tests into cursors.sql and clarified comments in #14 following Michael's review in #13.
- Michael marked the patch ready for committer in #15, and Sami supplied the rebased final submission in #16.
- Michael committed #16 as bee23ea4dd with light test and comment cleanup, reporting completion in #17; FETCH-size normalization landed, while the broader cursor-name normalization, underlying-query tracking changes, and proposed setting remained outside the committed patch.