Apr 2023

2 commits
Track IO times in pg_stat_io
8 Apr 2023Andres Freundmaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #191 of 2 reviewers saw the final version

Commits the third patch of #19, with matching instrumentation, catalog, documentation, and regression-output changes; the fourth patch remains excluded. Committer edits in pgstatfuncs.c replace pgstat_tracks_io_time() with an invalid-column sentinel and fix fractional-millisecond truncation, alongside naming and whitespace cleanup confirmed in #20.

  • Andres Freundsaw the final versiontrailerAndres requested centralized accounting and safe timing storage in #5 and #13, supplied a refactoring in #15, reviewed #17, and edited and committed the final version as reported in #20.
  • Bertrand Drouvotsaw an earlier versiontrailerBertrand reviewed ordering, validation, and timing interpretation in #2 and approved those revisions in #4, before the accounting helpers, storage representation, and multi-block extension support changed substantially.
Improve IO accounting for temp relation writes
7 Apr 2023Andres Freundmaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #191 of 1 reviewer saw the final version

The diff exactly combines the first two patches of #19: 33 added lines in src/backend/storage/buffer/localbuf.c and src/backend/storage/buffer/bufmgr.c account for temporary-relation write timing and FlushRelationBuffers() write counts. The remaining timing feature and database-counter refactoring are outside this commit.

  • Andres Freundsaw the final versiontrailerAndres identified the temporary-write accounting omission and requested a separate fix in #15, reviewed its explanation in #18, and committed the final patches as confirmed in #20.

Credits across 2 commits

Author
Melanie Plageman2
Reviewer
Andres Freund2
Bertrand Drouvot1
Committer
Andres Freund2