Fix a few more redundant calls of GetLatestSnapshot()

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: f1ef111a0940fedace997fe740fb221b068cf6ee
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2025-03-10T17:00:08Z
Releases: 17.5
Fix a few more redundant calls of GetLatestSnapshot()

Commit 2367503177 fixed this in RelationFindReplTupleByIndex(), but I
missed two other similar cases.

Per report from Ranier Vilela.

Discussion: https://www.postgresql.org/message-id/CAEudQArUT1dE45WN87F-Gb7XMy_hW6x1DFd3sqdhhxP-RMDa0Q@mail.gmail.com
Backpatch-through: 13

Files

PathChange+/−
src/backend/executor/execReplication.c modified +1 −1

Discussion