Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a73bd49

Browse files
author
Amit Kapila
committed
Doc: Update caveats in synchronous logical replication.
Reported-by: Simon Riggs Author: Takamichi Osumi Reviewed-by: Amit Kapila Backpatch-through: 9.6 Discussion: https://www.postgresql.org/message-id/20210222222847.tpnb6eg3yiykzpky@alap3.anarazel.de
1 parent 35e6b3b commit a73bd49

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

doc/src/sgml/logicaldecoding.sgml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -754,16 +754,18 @@ OutputPluginWrite(ctx, true);
754754

755755
<para>
756756
In synchronous replication setup, a deadlock can happen, if the transaction
757-
has locked [user] catalog tables exclusively. This is because logical decoding of
758-
transactions can lock catalog tables to access them. To avoid this users
759-
must refrain from taking an exclusive lock on [user] catalog tables. This can
760-
happen in the following ways:
757+
has locked [user] catalog tables exclusively. See
758+
<xref linkend="logicaldecoding-capabilities"/> for information on user
759+
catalog tables. This is because logical decoding of transactions can lock
760+
catalog tables to access them. To avoid this users must refrain from taking
761+
an exclusive lock on [user] catalog tables. This can happen in the following
762+
ways:
761763

762764
<itemizedlist>
763765
<listitem>
764766
<para>
765767
Issuing an explicit <command>LOCK</command> on <structname>pg_class</structname>
766-
(or any other catalog table) in a transaction.
768+
in a transaction.
767769
</para>
768770
</listitem>
769771

@@ -781,6 +783,10 @@ OutputPluginWrite(ctx, true);
781783
</para>
782784
</listitem>
783785
</itemizedlist>
786+
787+
Note that these commands that can cause deadlock apply to not only explicitly
788+
indicated system catalog tables above but also to any other [user] catalog
789+
table.
784790
</para>
785791
</sect2>
786792
</sect1>

0 commit comments

Comments
 (0)