diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-04-04 08:24:32 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2017-04-04 08:24:32 -0400 |
commit | fe7bbc4ddb82c635ef08b5eadc5ce472ad515996 (patch) | |
tree | 36511b95c6a0d9e3cc9faff6aa273d233ffb8608 /src/backend/utils/adt/network_gist.c | |
parent | b38006ef6d1ba2f56cc4962ed17956b74c9fa0c4 (diff) | |
download | postgresql-fe7bbc4ddb82c635ef08b5eadc5ce472ad515996.tar.gz postgresql-fe7bbc4ddb82c635ef08b5eadc5ce472ad515996.zip |
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>
Diffstat (limited to 'src/backend/utils/adt/network_gist.c')
0 files changed, 0 insertions, 0 deletions