• Peter Eisentraut's avatar
    Fix remote position tracking in logical replication · fe7bbc4d
    Peter Eisentraut authored
    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>
    fe7bbc4d
worker.c 39.9 KB