Jan 2025

4 commits
Rework macro pgstat_is_ioop_tracked_in_bytes()
16 Jan 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 93% suremodified before commitlight changesfrom patchset #223 of 3 reviewers saw the final version

Retains the cast-based macro fix from #22, adds argument parentheses, and moves the macro from pgstat_io.c to pgstat.h following #25 and #26. The intervening macro-removal alternative in #24 was abandoned.

  • Bertrand Drouvotsaw the final versiontrailerTested the final inline macro from #26 with clang 5.0.1 and reported that it silenced the warning in #28.
  • Tom Lanesaw the final versiontrailerFlagged missing parentheses in #23, proposed retaining the macro beside its enum in #25, and approved the final parentheses in #27.
  • Nazir Bilal Yavuzsaw the final versiontrailerTested the final inline macro with clang 4 and confirmed that it fixed the warning in #30.
Remove assertion in pgstat_count_io_op()
14 Jan 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surewritten from the discussion, no matching patch2 of 2 reviewers saw the final version

Deletes the single io_op bounds assertion in pgstat_count_io_op(), as proposed in #18 after #17; no attachment contains this deletion. The commit credits Nazir, and #19 explains that the cleanup was accidentally omitted from the main landing.

  • Bertrand Drouvotsaw the final versiontrailerExplicitly requested removal of the redundant assertion and otherwise approved #16 in #18, specifying the exact committed cleanup.
  • Michael Paquiersaw the final versioncommittercommitted the patch
Make pg_stat_io count IOs as bytes instead of blocks for some operations
14 Jan 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #162 of 3 reviewers saw the final version

Reconstructing the files produced by #16 shows identical landed code, documentation, and regression output except for an IOOp explanatory comment in src/include/pgstat.h; the commit additionally bumps catversion.h. Michael forwarded the revised patch, while the commit explicitly credits Nazir.

  • Bertrand Drouvotsaw the final versiontrailerReviewed validation and enum organization in #3, terminology in #6, the macro and series order in #15, and approved the final patch with one cleanup request in #18.
  • Melanie Plagemansaw an earlier versiontrailerSupported the smgr-level design and requested clearer examples in #2, before validation refactoring and per-backend statistics integration changed the implementation.
  • Michael Paquiersaw the final versioncommittercommitted the patch
Merge pgstat_count_io_op_n() and pgstat_count_io_op()
10 Jan 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #142 of 2 reviewers saw the final version

Lands only the API-cleanup component of #14, reordered before byte tracking. As explained in #16, Michael retains the pgstat_count_io_op name, adds its explicit count argument, and removes the wrapper while leaving byte support for the subsequent patch.

  • Bertrand Drouvotsaw the final versiontrailerReviewed the cleanup component in #15 and proposed landing it before byte tracking, which the committer followed with naming and rebase adjustments.
  • Michael Paquiersaw the final versioncommittercommitted the patch

Credits across 4 commits

Author
Nazir Bilal Yavuz3
Michael PaquierLLM1
Reviewer
Bertrand Drouvot4
Michael Paquiercommitter3
Melanie Plageman1
Nazir Bilal Yavuz1
Tom Lane1
Reported by
Tom Lane1
Committer
Michael Paquier4

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