Aug 2025

1 commit
Add information about "generation" when dropping twice pgstats entry
8 Aug 2025Michael Paquiermaster19beta1REL_19_STABLE19beta1REL_18_STABLE18beta3REL_17_STABLE17.6REL_16_STABLE16.10REL_15_STABLE15.14
LLM analysis, 100% surelanded as postedfrom patchset #221 of 1 reviewer saw the final version

The single hunk in src/backend/utils/activity/pgstat_shmem.c exactly matches #22, adding generation to the error format and reading shent->generation. Michael confirmed application in #23.

  • Michael Paquiersaw the final versioncommittercommitted the patch

Nov 2024

1 commit
Fix race conditions with drop of reused pgstats entries
15 Nov 2024Michael Paquiermaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1REL_17_STABLE17.2REL_16_STABLE16.6REL_15_STABLE15.10Also in: BUG #17947: Combination of replslots pgstat issues causes error/assertion failure (not this thread)
LLM analysis, 100% suremodified before commitlight changesfrom patchset #151 of 1 reviewer saw the final version

The executable changes match #15, with only three comment edits in src/backend/utils/activity/pgstat_shmem.c and added locking documentation in src/include/utils/pgstat_internal.h. I disagree with the from_discussion attribution in thread #71934: its June 2024 attachments precede this matching November patchset, and Michael distinguishes his implementation from the earlier concept in #7.

  • Bertrand Drouvotsaw the final versiontrailerBertrand tested the initial fix and questioned locking and structure size in #13, then endorsed the revised approach and suggested comment consistency and regression coverage in #16.

Credits across 2 commits

Author
Bertrand Drouvot1
Kyotaro Horiguchi1
Michael Paquier1
Reviewer
Bertrand Drouvot1
Michael Paquiercommitter1
Reported by
Alexander Lakhin1
Peter Smith1
Committer
Michael Paquier2