]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Doc: Update caveats in synchronous logical replication.
authorAmit Kapila <akapila@postgresql.org>
Thu, 24 Jun 2021 04:19:23 +0000 (09:49 +0530)
committerAmit Kapila <akapila@postgresql.org>
Thu, 24 Jun 2021 04:19:23 +0000 (09:49 +0530)
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

doc/src/sgml/logicaldecoding.sgml

index e1cc5c209ad42f665e599c04f691da31b7cd17e8..64f5a61bf88cd8ff355e9ed80fe6cdd0dcd1fd93 100644 (file)
@@ -754,16 +754,18 @@ OutputPluginWrite(ctx, true);
 
     <para>
      In synchronous replication setup, a deadlock can happen, if the transaction
-     has locked [user] catalog tables exclusively. This is because logical decoding of
-     transactions can lock catalog tables to access them. To avoid this users
-     must refrain from taking an exclusive lock on [user] catalog tables. This can
-     happen in the following ways:
+     has locked [user] catalog tables exclusively. See
+     <xref linkend="logicaldecoding-capabilities"/> for information on user
+     catalog tables. This is because logical decoding of transactions can lock
+     catalog tables to access them. To avoid this users must refrain from taking
+     an exclusive lock on [user] catalog tables. This can happen in the following
+     ways:
 
      <itemizedlist>
       <listitem>
        <para>
         Issuing an explicit <command>LOCK</command> on <structname>pg_class</structname>
-        (or any other catalog table) in a transaction.
+        in a transaction.
        </para>
       </listitem>
 
@@ -781,6 +783,10 @@ OutputPluginWrite(ctx, true);
        </para>
       </listitem>
      </itemizedlist>
+
+     Note that these commands that can cause deadlock apply to not only explicitly
+     indicated system catalog tables above but also to any other [user] catalog
+     table.
     </para>
    </sect2>
   </sect1>