Apr 2025

1 commit
Fix use-after-free in pgstat_fetch_stat_backend_by_pid()
7 Apr 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #721 of 2 reviewers saw the final version

Preserves the fetch reordering in #72, adding a lifetime warning and resetting the optional backend-type output to B_INVALID when fetching fails. Michael explains these additions in #74.

  • Alexander Lakhinsaw an earlier versionLLM analysis, 88% sure#70 supplies a sanitizer reproducer for the committed code's snapshot use-after-free that prompted this fix, but shows no review of the attached correction.
  • Michael Paquiersaw the final versioncommittercommitted the patch

Feb - Mar 2025

9 commits
Remove initialization from PendingBackendStats
12 Mar 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surelanded as postedfrom patchset #681 of 2 reviewers saw the final version

The one-line removal of the PendingBackendStats initializer exactly matches #68 in src/backend/utils/activity/pgstat_backend.c.

  • Tom Lanesaw an earlier versionLLM analysis, 88% sure#67 identifies the initializer's missing-braces warnings across buildfarm members, prompting #68, without reviewing the attached fix.
  • Michael Paquiersaw the final versioncommittercommitted the patch
Add WAL data to backend statistics
11 Mar 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #612 of 3 reviewers saw the final version

Matches #61 apart from a catalog-version bump, expression parentheses, and restoring independent I/O and WAL if-statements. #65 explicitly accepts the narrowed I/O check while declining the else-if styling.

  • Michael Paquiersaw the final versiontrailerHe reviewed the infrastructure and feature throughout, supplied the flag-sensitive pending checks in #60, and committed the final version after reviewing #61.
  • Nazir Bilal Yavuzsaw the final versiontrailer#62 questions flush placement and the wal_records pending test, and #64 accepts the explanations before the lightly edited final commit.
  • Xuneng Zhousaw an earlier versiontrailer#50 identifies the missing WAL check in pgstat_backend_have_pending_cb(), which is fixed in #51 before further backend-type and flag-sensitive logic changes.
Improve check for detection of pending data in backend statistics
8 Mar 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #550 of 1 reviewer saw the final version

Commits only the backend-type guard component of #55, removing its redundant else and adding an explicit zero initializer for PendingBackendStats as described in #58.

  • Andres Freundsaw an earlier versionLLM analysis, 93% sure#52 reports the checkpointer shutdown assertion with a backtrace, leading to the backend-type guard subsequently isolated in #55.
Fix some gaps in pg_stat_io with WAL receiver and WAL summarizer
5 Mar 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #470 of 1 reviewer saw the final version

Retains the reporting fixes, row filtering, and two TAP tests from #47, but moves the summarizer report into summarizer_wait_for_wal() before its wait and revises comments.

  • Bertrand Drouvotsaw an earlier versiontrailer#48 reviews reporting locations, filtering, comments, and tests, before the committed version relocates the summarizer's reporting call.
Handle auxiliary processes in SQL functions of backend statistics
3 Mar 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #421 of 2 reviewers saw the final version

Commits the auxiliary-process component of #42, retaining AuxiliaryPidGetProc() fallback, backend-type checks, and the backend-I/O flush in pgstat_report_wal(). Edits simplify equivalent conditional blocks and comments.

  • Rahila Syedsaw an earlier versionLLM analysis, 99% sure#17 proposes explicit auxiliary-process lookup and backend-type checking, which Bertrand implements in #42, and the commit credits her report.
  • Michael Paquiersaw the final versioncommittercommitted the patch
Invent pgstat_fetch_stat_backend_by_pid()
28 Feb 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #401 of 1 reviewer saw the final version

Commits the PID-lookup helper component of #40, renaming it pgstat_fetch_stat_backend_by_pid() and initializing the optional backend-type output to B_INVALID. #41 explains both edits.

  • Michael Paquiersaw the final versioncommittercommitted the patch
Refactor code of pg_stat_get_wal() building result tuple
27 Feb 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #381 of 1 reviewer saw the final version

Commits the tuple-building component of #38; its changes to pgstatfuncs.c differ only in the helper's comment wrapping.

  • Michael Paquiersaw the final versioncommittercommitted the patch
Adding new PgStat_WalCounters structure in pgstat.h
26 Feb 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #361 of 1 reviewer saw the final version

Commits the PgStat_WalCounters component of #36 before the tuple-helper refactor, adapting pg_stat_get_wal() directly instead. It also adds structure documentation and bumps PGSTAT_FILE_FORMAT_ID, as discussed in #37.

  • Michael Paquiersaw the final versioncommittercommitted the patch
Remove pgstat_flush_wal()
26 Feb 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #361 of 1 reviewer saw the final version

Derives from the WAL-flush cleanup component of #36, but deletes pgstat_flush_wal() and calls pgstat_wal_flush_cb() directly instead of making the wrapper static. Bertrand explicitly recognizes this change in #38.

  • Michael Paquiersaw the final versioncommittercommitted the patch

Jan 2025

1 commit
Refactor some code related to backend statistics
10 Jan 2025Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #51 of 1 reviewer saw the final version

Commits the backend-refactoring component of #5, additionally removing the PgStat_BackendPendingIO alias and documenting/repositioning PgStat_BackendPending in pgstat.h. #6 confirms the alias removal.

  • Michael Paquiersaw the final versioncommittercommitted the patch

Credits across 11 commits

Author
Bertrand Drouvot10
Michael PaquierLLM1
Reviewer
Michael Paquiercommitter9
Bertrand Drouvot1
Nazir Bilal Yavuz1
Xuneng Zhou1
Reported by
Alexander Lakhin1
Rahila Syed1
Co author
Michael Paquier1
Committer
Michael Paquier11

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