1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-28 18:48:04 +03:00

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 <sawada.mshk@gmail.com>
This commit is contained in:
Peter Eisentraut
2017-03-03 23:25:34 -05:00
parent 347302730d
commit 272adf4f9c
7 changed files with 66 additions and 15 deletions

View File

@@ -38,8 +38,8 @@ DROP SUBSCRIPTION [ IF EXISTS ] <replaceable class="parameter">name</replaceable
</para>
<para>
The replication worker associated with the subscription will not stop until
after the transaction that issued this command has committed.
<command>DROP SUBSCRIPTION</command> cannot be executed inside a
transaction block when <literal>DROP SLOT</literal> is specified.
</para>
</refsect1>