mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
doc: Document commands that cannot be run in a transaction block
Mainly covering the new CREATE SUBSCRIPTION and DROP SUBSCRIPTION, but ALTER DATABASE SET TABLESPACE was also missing.
This commit is contained in:
@@ -48,11 +48,6 @@ CREATE SUBSCRIPTION <replaceable class="PARAMETER">subscription_name</replaceabl
|
||||
subscription at the commit of the transaction where this command is run.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<command>CREATE SUBSCRIPTION</command> cannot be executed inside a
|
||||
transaction block when the parameter <literal>create_slot</literal> is specified.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Additional info about subscriptions and logical replication as a whole
|
||||
can is available at <xref linkend="logical-replication-subscription"> and
|
||||
@@ -227,6 +222,11 @@ CREATE SUBSCRIPTION <replaceable class="PARAMETER">subscription_name</replaceabl
|
||||
publication instance.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
When creating a replication slot (the default behavior), <command>CREATE
|
||||
SUBSCRIPTION</command> cannot be executed inside a transaction block.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Creating a subscription that connects to the same database cluster (for
|
||||
example, to replicate between databases in the same cluster or to replicate
|
||||
|
Reference in New Issue
Block a user