pgsql: Add option to modify sync commit per subscription

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add option to modify sync commit per subscription
Date: 2017-04-14 18:02:04
Message-ID: E1cz5Xo-0005Kw-MW@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add option to modify sync commit per subscription

This also changes default behaviour of subscription workers to
synchronous_commit = off.

Author: Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/887227a1cc861d87ca0f175cf8bd1447554090eb

Modified Files
--------------
doc/src/sgml/catalogs.sgml | 10 ++++++
doc/src/sgml/ref/alter_subscription.sgml | 2 ++
doc/src/sgml/ref/create_subscription.sgml | 31 +++++++++++++++++
src/backend/catalog/pg_subscription.c | 8 +++++
src/backend/commands/subscriptioncmds.c | 54 +++++++++++++++++++++++++-----
src/backend/replication/logical/launcher.c | 6 +---
src/backend/replication/logical/worker.c | 8 +++++
src/bin/pg_dump/pg_dump.c | 11 +++++-
src/bin/pg_dump/pg_dump.h | 1 +
src/bin/psql/describe.c | 5 ++-
src/include/catalog/pg_subscription.h | 8 +++--
src/test/regress/expected/subscription.out | 30 ++++++++++-------
src/test/regress/sql/subscription.sql | 4 ++-
13 files changed, 145 insertions(+), 33 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-04-14 18:07:58 pgsql: Fix typo in comment
Previous Message Peter Eisentraut 2017-04-14 16:54:52 pgsql: Remove pstrdup of TextDatumGetCString