Jan 2025

2 commits
Rework handling of pending data for backend statistics
21 Jan 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #930 of 2 reviewers saw the final version

Takes the backend pending-data portion of #93, with callback generalization committed separately in 28de66cee5. Comparing the applied attachment with the combined committed result shows removal of pending_size, reordered early checks in pgstat_flush_backend(), and comment edits.

  • Nazir Bilal Yavuzsaw an earlier versionLLM analysis, 95% sureReported that the landed design from #61 allocates pending data inside critical sections and identified another allocation path in #79, before the static-storage and callback redesign.
  • Andres Freundsaw an earlier versionLLM analysis, 95% sureCriticized the allocated pending-data design from #61 and required allocation-free I/O counting in #84, prompting the subsequent static-storage rework.
Rename some pgstats callbacks related to flush of entries
21 Jan 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #931 of 1 reviewer saw the final version

Extracts the callback renaming and removal of fixed-numbered restrictions from #93 into a prerequisite commit touching pgstat.c and pgstat_internal.h. Differences within that extracted portion are comments and callback declaration ordering, consistent with the split announced in #94.

  • Michael Paquiersaw the final versiontrailerReworked the callback design, proposed the final names in #92, and reviewed and committed the split result as announced in #94.

Dec 2024

4 commits
Relax regression test for fsync check of backend-level stats
20 Dec 2024Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #662 of 2 reviewers saw the final version

Preserves the relaxed fsync comparison from #66 in both stats.sql and stats.out. The commit additionally qualifies the checkpoint comment with 'usually' to acknowledge backend fsync activity.

  • Alexander Lakhinsaw the final versionLLM analysis, 99% sureReported the failing fsync test introduced by #61 and reproduced it locally in #65, leading directly to the light test correction.
  • Michael Paquiersaw the final versioncommittercommitted the patch
Add backend-level statistics to pgstats
19 Dec 2024Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #611 of 4 reviewers saw the final version

Commits the backend-statistics feature patch from the two-patch submission #61, after its helper extraction landed separately. Michael added a NULL check after pgstat_get_beentry_by_proc_number(), moved that lookup before fetching counters, bumped version constants, and adjusted comments, as explained in #63.

  • Álvaro Herrerasaw an earlier versiontrailerIdentified the oversized per-backend PgStat_IO allocation and proposed PgStat_BktypeIO in #6, before the variable-numbered redesign.
  • Kyotaro Horiguchisaw an earlier versiontrailerReviewed access, permissions, fixed versus variable storage, and allocation costs in #2 and #3, before substantial redesign.
  • Michael Paquiersaw the final versiontrailerDrove the storage and lifecycle revisions, supplied implementation edits, and tested concurrent backend exits before fixing and committing the final version in #63.
  • Nazirsaw an earlier versiontrailerTested #9, reported stale reset timestamps in #10, and confirmed the fix in #13, before the storage architecture changed.
Extract logic filling pg_stat_get_io()'s tuplestore into its own routine
19 Dec 2024Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #61

Commits only the prerequisite tuple-builder extraction from #61. Its diff matches that attachment except for removing 'in' from the helper's introductory comment in src/backend/utils/adt/pgstatfuncs.c.

Tweak some comments related to variable-numbered stats in pgstat.c
17 Dec 2024Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 99% surewritten from the discussion, no matching patch

Changes two pgstat.c comments from database-object terminology to variable-numbered statistics, without a matching attached patch. Michael explicitly says in #56 that reviewing the backend-statistics work led him to make these two fixes.

Credits across 6 commits

Author
Bertrand Drouvot5
Michael Paquier1 LLM3
Reviewer
Michael Paquiercommitter3
Alvaro Herrera1
Kyotaro Horiguchi1
Nazir1
Committer
Michael Paquier6

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