pgsql: Fix remote position tracking in logical replication

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Fix remote position tracking in logical replication
Дата
Msg-id E1cvNg5-000451-6F@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Fix formula in _hash_spareindex.
Следующее
От: Stephen Frost
Дата:
Сообщение: pgsql: Remove --verbose from PROVE_FLAGS