Jul 2025

2 commits
Fix performance regression with flush of pending fixed-numbered stats
27 Jul 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1REL_18_STABLE18beta3
LLM analysis, 99% surepart of a posted patchsetmoderate changesfrom patchset #90 of 1 reviewer saw the final version

This commits the second patch of #9, removing have_static_pending_cb and introducing pgstat_report_fixed across seven files. The committed src/backend/utils/activity/pgstat.c additionally guards the flush_static_cb loop with pgstat_report_fixed, and src/include/utils/pgstat_internal.h has expanded comments and declaration cleanup.

  • Bertrand Drouvotsaw an earlier versiontrailerBertrand questioned flag-maintenance risks in #10 and approved the attached implementation in #12, before the additional callback-loop guard appeared in the committed version.
Lower bounds related to pgstats kinds
25 Jul 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1REL_18_STABLE18beta3
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #92 of 2 reviewers saw the final version

This commits only the first patch of the two-patch series in #9, with all five replacements unchanged in src/include/utils/pgstat_kind.h and the two injection-point statistics modules. The commit message expands the rationale; the flush optimization was committed separately.

  • Andres Freundsaw the final versionLLM analysis, 94% sureAndres demonstrated the excessive kind-scan overhead in #1 and supported reducing the oversized limit in #7, contributing to the bounds change before its attachment.
  • Bertrand Drouvotsaw the final versionLLM analysis, 100% sureBertrand checked the proposed bounds, corrected the available-kind counts, accepted the remaining capacity, and identified the required wiki update in #10.

Credits across 2 commits

Author
Michael PaquierLLM2
Reviewer
Bertrand Drouvot1
Reported by
Andres Freund1
Committer
Michael Paquier2

N LLM means N of the credits come from LLM analysis, not from commit trailers.