pgsql: Fix remote position tracking in logical replication - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Fix remote position tracking in logical replication
Date
Msg-id E1cvNg5-000451-6F@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix remote position tracking in logical replication

We need to set the origin remote position to end_lsn, not commit_lsn, as
commit_lsn is the start of commit record, and we use the origin remote
position as start position when restarting replication stream.  If we'd
use commit_lsn, we could request data that we already received from the
remote server after a crash of a downstream server.

Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/fe7bbc4ddb82c635ef08b5eadc5ce472ad515996

Modified Files
--------------
src/backend/replication/logical/worker.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Fix formula in _hash_spareindex.
Next
From: Stephen Frost
Date:
Subject: pgsql: Remove --verbose from PROVE_FLAGS