pgsql: Add missing break out seqscan loop in logical replication - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Add missing break out seqscan loop in logical replication
Date
Msg-id E1iyjls-0003NJ-PF@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add missing break out seqscan loop in logical replication

When replica identity is FULL (an admittedly unusual case), the loop
that searches for tuples in execReplication.c didn't stop scanning the
table when once a matching tuple was found.  Add the missing 'break'.

Note slight behavior change: we now return the first matching tuple
rather than the last one.  They are supposed to be indistinguishable
anyway, so this shouldn't matter.

Author: Konstantin Knizhnik
Discussion: https://postgr.es/m/379743f6-ae91-b866-f7a2-5624e6d2b0a4@postgrespro.ru

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1c7a0b387d18c517d45e2f6ec7d8b7d1b2d5fe13

Modified Files
--------------
src/backend/executor/execReplication.c | 3 +++
1 file changed, 3 insertions(+)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: pgsql: Handle lack of DSM slots in parallel btree build.
Next
From: Michael Paquier
Date:
Subject: pgsql: Fix fuzzy error handling in pg_basebackup when opening gzFile