Jul 2026

2 commits
Add tests for nbtree empty index predicate locking.
25 Jul 2026Peter Geogheganmasterunreleased
LLM analysis, 100% suremodified before commitlight changesfrom patchset #28

The test patch in #28 supplies both injection points and isolation scenarios. The commit moves the tests to src/test/modules/nbtree, renames them and the injection points, moves transaction starts into session setup, and adds pg_backend_pid() conditions to keep scans in the leader under debug_parallel_query.

Fix another empty nbtree index SSI race.
25 Jul 2026Peter GeogheganmasterunreleasedREL_19_STABLE19beta3REL_18_STABLE18.6REL_17_STABLE17.11REL_16_STABLE16.15REL_15_STABLE15.19REL_14_STABLE14.24
LLM analysis, 99% surelanded as postedfrom patchset #28

Matches the _bt_endpoint() fix in #28 modulo adaptation to the target branch: the existing local buf, snapshot argument, and BTScanPosInvalidate() replace their attachment-base equivalents. The SERIALIZABLE relation lock and endpoint recheck are unchanged.

Jul 2023

3 commits
Fix race in SSI interaction with empty btrees.
3 Jul 2023Thomas Munromaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1REL_16_STABLE16beta3REL_15_STABLE15.4REL_14_STABLE14.9REL_13_STABLE13.12+2 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #242 of 2 reviewers saw the final version

The _bt_first() implementation matches the btree component of #24; the only additional code change is #include "access/xact.h" in src/backend/access/nbtree/nbtsearch.c.

  • Dmitry Dolgovsaw the final versiontrailerDmitry confirmed the initial fix worked in #11 and continued testing with both fixes applied in #19, after which the btree component received only comment and include changes.
  • Heikki Linnakangassaw the final versiontrailerHeikki endorsed #20 and requested preserving the original explanatory comment in #22, with only that comment adjustment and an include added afterward.
Fix race in SSI interaction with gin fast path.
3 Jul 2023Thomas Munromaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1REL_16_STABLE16beta3REL_15_STABLE15.4REL_14_STABLE14.9REL_13_STABLE13.12+2 more
LLM analysis, 100% surelanded as postedfrom patchset #241 of 1 reviewer saw the final version

Matches the GIN component of #24 modulo removal of an added blank line: ginfast.c moves conflict checks under the buffer lock, and ginget.c passes BufferGetBlockNumber(stack->buffer) to PredicateLockPage().

  • Heikki Linnakangassaw the final versiontrailerHeikki endorsed the patches in #22, and the GIN implementation from #20 subsequently changed only in whitespace.
Fix race in SSI interaction with bitmap heap scan.
3 Jul 2023Thomas Munromaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1REL_16_STABLE16beta3REL_15_STABLE15.4REL_14_STABLE14.9REL_13_STABLE13.12+2 more
LLM analysis, 100% surelanded as postedfrom patchset #240 of 2 reviewers saw the final version

The heapam_scan_bitmap_next_block() hunk exactly matches the bitmap component of #24, including the !IsolationIsSerializable() guard and explanatory comment in src/backend/access/heap/heapam_handler.c.

  • Dmitry Dolgovsaw an earlier versiontrailerDmitry confirmed the initial inline fix worked in #11 and reviewed the attached version's reasoning in #15, before #24 changed the logic to preserve the optimization outside SERIALIZABLE.
  • Heikki Linnakangassaw an earlier versiontrailerHeikki endorsed #20 in #22 and requested retaining the optimization outside SSI, which introduced the subsequent isolation-level condition.

Credits across 5 commits

Author
Thomas MunroLLM3
Peter Geoghegan2
Reviewer
Heikki Linnakangas3
Dmitry Dolgov2
Reported by
Artem Anisimov3
Dmitry Dolgov1
Committer
Thomas Munro3
Peter Geoghegan2

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