Aug 2026

3 commits
Use OOM-safe routine for pgstats shared hashtable insert
9 Aug 2026Michael Paquiermasterunreleased
LLM analysis, 100% surelanded as postedfrom patchset #2

The diff exactly matches #2: src/backend/utils/activity/pgstat_shmem.c uses dshash_find_or_insert_extended() with DSHASH_INSERT_NO_OOM and releases the local reference before reporting allocation failure.

Fix shared refcount leak in pgstat entry acquisition
7 Aug 2026Michael Paquiermasterunreleased
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #11 of 1 reviewer saw the final version

The commit extracts the unchanged pgstat_acquire_entry_ref() hunk from #1, moving dshash_release_lock() after initialization of the local reference fields. The other RFC fixes and companion test are omitted.

  • Michael Paquiersaw the final versioncommittercommitted the patch
Fix local pgstat entry leak on OOM during entry creation
7 Aug 2026Michael PaquiermasterunreleasedREL_19_STABLE19beta3REL_18_STABLE18.6REL_17_STABLE17.11REL_16_STABLE16.15REL_15_STABLE15.19
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #11 of 1 reviewer saw the final version

The commit extracts the pgstat_init_entry() allocation-failure cleanup from #1, adding pgstat_release_entry_ref() before dshash_delete_entry() in src/backend/utils/activity/pgstat_shmem.c. Only comment wrapping changes within that hunk; the remaining RFC changes and test are omitted.

  • Michael Paquiersaw the final versioncommittercommitted the patch

Credits across 3 commits

Author
Niall Newman2
Michael Paquier1
Reviewer
Michael Paquiercommitter2
Committer
Michael Paquier3