Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit91ad8b4

Browse files
committed
doc: Document commands that cannot be run in a transaction block
Mainly covering the new CREATE SUBSCRIPTION and DROP SUBSCRIPTION, butALTER DATABASE SET TABLESPACE was also missing.
1 parent8d92602 commit91ad8b4

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

‎doc/src/sgml/ref/alter_database.sgml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> RESET ALL
164164
<para>
165165
The new default tablespace of the database.
166166
</para>
167+
168+
<para>
169+
This form of the command cannot be executed inside a transaction block.
170+
</para>
167171
</listitem>
168172
</varlistentry>
169173

‎doc/src/sgml/ref/create_subscription.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ CREATE SUBSCRIPTION <replaceable class="PARAMETER">subscription_name</replaceabl
4848
subscription at the commit of the transaction where this command is run.
4949
</para>
5050

51-
<para>
52-
<command>CREATE SUBSCRIPTION</command> cannot be executed inside a
53-
transaction block when the parameter <literal>create_slot</literal> is specified.
54-
</para>
55-
5651
<para>
5752
Additional info about subscriptions and logical replication as a whole
5853
can is available at <xref linkend="logical-replication-subscription"> and
@@ -227,6 +222,11 @@ CREATE SUBSCRIPTION <replaceable class="PARAMETER">subscription_name</replaceabl
227222
publication instance.
228223
</para>
229224

225+
<para>
226+
When creating a replication slot (the default behavior), <command>CREATE
227+
SUBSCRIPTION</command> cannot be executed inside a transaction block.
228+
</para>
229+
230230
<para>
231231
Creating a subscription that connects to the same database cluster (for
232232
example, to replicate between databases in the same cluster or to replicate

‎doc/src/sgml/ref/drop_subscription.sgml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ DROP SUBSCRIPTION [ IF EXISTS ] <replaceable class="parameter">name</replaceable
9393
reserve WAL and might eventually cause the disk to fill up. See
9494
also <xref linkend="logical-replication-subscription-slot">.
9595
</para>
96+
97+
<para>
98+
If a subscription is associated with a replication slot, then <command>DROP
99+
SUBSCRIPTION</command> cannot be executed inside a transaction block.
100+
</para>
96101
</refsect1>
97102

98103
<refsect1>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp