Jul 2025

3 commits
pg_stat_statements: Add counters for generic and custom plans
31 Jul 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #662 of 4 reviewers saw the final version

Takes the second patch of the two-patch series in #66, preserving its counter logic and upgrade SQL. Michael's edits bump PGSS_FILE_HEADER, adjust documentation and test ordering, add old-version upgrade coverage, and remove auto-mode tests, as reported in #70.

  • Ilia Evdokimovsaw an earlier versiontrailerIdentified a redundant null check in #5, discussed cached-plan states in #7, and corrected documentation ordering in #18, before the later architectural changes.
  • Andrei Lepikhovsaw the final versiontrailerDrove the PlannedStmt design in #37, reviewed the origin categories in #58, and supported UNKNOWN in #65, after which the relevant changes were light.
  • Michael Paquiersaw the final versiontrailerReviewed the architecture and final series, then committed the counters with the corrections described in #70.
  • Nikolay Samokhvalovsaw an earlier versiontrailerReported successful build and tests and suggested initialization, test, and documentation fixes in #14, before tracking moved from QueryDesc to PlannedStmt.
Rename CachedPlanType to PlannedStmtOrigin for PlannedStmt
31 Jul 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #661 of 2 reviewers saw the final version

Exactly matches the first patch of the two-patch series in #66: normalized diffs and stable patch IDs agree. The commit credits Michael Paquier as author and Sami Imseih as co-author, tracing the original category patch to #57.

  • Tom Lanesaw an earlier versionLLM analysis, 94% sureReviewed the already-landed field and proposed distinguishing user-submitted and internally generated plans in #55, motivating #57 before the final UNKNOWN category was added.
  • Andrei Lepikhovsaw the final versionLLM analysis, 99% sureSaid the category patch looked good in #58 and supported the final UNKNOWN naming in #65, which #66 adopted.
Introduce field tracking cached plan type in PlannedStmt
24 Jul 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #392 of 2 reviewers saw the final version

Extracts the backend PlannedStmt/GetCachedPlan portion of #39, leaving the counters for #45. Changes are enum and field placement in src/include/nodes/plannodes.h, PLAN_CACHE_NONE naming, comments, and typedef registration.

  • Andrei Lepikhovsaw the final versiontrailerProposed storing plan type in PlannedStmt in #37 and continued reviewing that implementation in #40, with only light edits before this commit.
  • Michael Paquiersaw the final versiontrailerReviewed the final backend design in #44, split it from the counters, and reported applying it with minor edits in #45.

Credits across 3 commits

Author
Sami Imseih2
Michael Paquier1
Reviewer
Andrei Lepikhov2
Michael Paquier2
Ilia Evdokimov1
Nikolay Samokhvalov1
Co author
Sami Imseih1
Committer
Michael Paquier3