Mar 2025

2 commits
Fix a few more redundant calls of GetLatestSnapshot()
10 Mar 2025Heikki Linnakangasmaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1REL_17_STABLE17.5REL_16_STABLE16.9REL_15_STABLE15.13REL_14_STABLE14.18REL_13_STABLE13.21
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Following 2367503177, Ranier Vilela identified the missed sequential-scan case in #5, and Heikki Linnakangas identified FindConflictTuple() in #6. The commit replaces GetLatestSnapshot() with GetActiveSnapshot() at both remaining table_tuple_lock() calls in src/backend/executor/execReplication.c.

  • Ranier Vilelasaw the final versionLLM analysis, 97% sureRanier identified the omitted sequential-scan case in #5, prompting the accepted extension of the snapshot fix acknowledged in #6.
Fix snapshot used in logical replication index lookup
10 Mar 2025Heikki Linnakangasmaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1REL_17_STABLE17.5REL_16_STABLE16.9REL_15_STABLE15.13REL_14_STABLE14.18REL_13_STABLE13.21
LLM analysis, 100% surewritten from the discussion, no matching patch

Heikki Linnakangas diagnosed the duplicate snapshot acquisition and proposed GetActiveSnapshot() in #1, then confirmed committing the minimal fix in #4. The single-line change in src/backend/executor/execReplication.c makes RelationFindReplTupleByIndex() pass the already-active snapshot to table_tuple_lock().

Credits across 2 commits

Committer
Heikki Linnakangas2