Fix a few more redundant calls of GetLatestSnapshot()

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: f7c566a1a276c5f228891c7599df1c0b8878eb35
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2025-03-10T16:58:10Z
Releases: 18.0
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 +2 −2

Discussion