From 272adf4f9cd67df323ae57ff3dee238b649d3b73 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 3 Mar 2017 23:25:34 -0500 Subject: Disallow CREATE/DROP SUBSCRIPTION in transaction block Disallow CREATE SUBSCRIPTION and DROP SUBSCRIPTION in a transaction block when the replication slot is to be created or dropped, since that cannot be rolled back. based on patch by Masahiko Sawada --- doc/src/sgml/ref/create_subscription.sgml | 5 +++++ doc/src/sgml/ref/drop_subscription.sgml | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'doc/src/sgml') diff --git a/doc/src/sgml/ref/create_subscription.sgml b/doc/src/sgml/ref/create_subscription.sgml index 250806f981b..9bed26219c6 100644 --- a/doc/src/sgml/ref/create_subscription.sgml +++ b/doc/src/sgml/ref/create_subscription.sgml @@ -51,6 +51,11 @@ CREATE SUBSCRIPTION subscription_name + + CREATE SUBSCRIPTION cannot be executed inside a + transaction block when CREATE SLOT is specified. + + Additional info about subscriptions and logical replication as a whole can is available at and diff --git a/doc/src/sgml/ref/drop_subscription.sgml b/doc/src/sgml/ref/drop_subscription.sgml index 9f2fb93275c..4228f1a2533 100644 --- a/doc/src/sgml/ref/drop_subscription.sgml +++ b/doc/src/sgml/ref/drop_subscription.sgml @@ -38,8 +38,8 @@ DROP SUBSCRIPTION [ IF EXISTS ] name - The replication worker associated with the subscription will not stop until - after the transaction that issued this command has committed. + DROP SUBSCRIPTION cannot be executed inside a + transaction block when DROP SLOT is specified. -- cgit v1.2.3