[COMMITTERS] pgsql: Add option to control snapshot export toCREATE_REPLICATION_SLOT

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема [COMMITTERS] pgsql: Add option to control snapshot export toCREATE_REPLICATION_SLOT
Дата
Msg-id E1cnu8t-0004fv-Rc@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Add option to control snapshot export to CREATE_REPLICATION_SLOT

We used to export snapshots unconditionally in CREATE_REPLICATION_SLOT
in the replication protocol, but several upcoming patches want more
control over what happens.

Suppress snapshot export in pg_recvlogical, which neither needs nor can
use the exported snapshot.  Since snapshot exporting can fail this
improves reliability.

This also paves the way for allowing the creation of replication slots
on standbys, which cannot export snapshots because they cannot allocate
new XIDs.

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

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/logicaldecoding.sgml                  | 11 +++-
doc/src/sgml/protocol.sgml                         | 19 ++++++-
src/backend/commands/subscriptioncmds.c            |  6 ++-
.../libpqwalreceiver/libpqwalreceiver.c            | 15 ++++--
src/backend/replication/repl_gram.y                | 43 ++++++++++++----
src/backend/replication/repl_scanner.l             |  2 +
src/backend/replication/walsender.c                | 58 ++++++++++++++++++++--
src/bin/pg_basebackup/streamutil.c                 |  5 ++
src/include/nodes/replnodes.h                      |  2 +-
src/include/replication/walreceiver.h              |  6 +--
10 files changed, 141 insertions(+), 26 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: [COMMITTERS] pgsql: amcheck: Harden tests against concurrent autovacuums.
Следующее
От: Andres Freund
Дата:
Сообщение: [COMMITTERS] pgsql: Improve isolation tests infrastructure.