Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
doc: mention that INSERT can block because of unique indexes
authorBruce Momjian <bruce@momjian.us>
Thu, 14 Jul 2022 19:17:19 +0000 (15:17 -0400)
committerBruce Momjian <bruce@momjian.us>
Thu, 14 Jul 2022 19:17:19 +0000 (15:17 -0400)
Initial patch by David G. Johnston.

Reported-by: David G. Johnston
Discussion: https://postgr.es/m/CAKFQuwZpbdzceO41VE-xt1Xh8rWRRfgopTAK1wL9EhCo0Am-Sw@mail.gmail.com

Backpatch-through: 10

doc/src/sgml/ref/insert.sgml

index 2973b72b8159b83080053d5fa2dcc3b929a7d163..558660ccc587de1e9da782f4d276f760f0158275 100644 (file)
@@ -75,6 +75,11 @@ INSERT INTO <replaceable class="parameter">table_name</replaceable> [ AS <replac
   </para>
 
   <para>
+   <command>INSERT</command> into tables that lack unique indexes will
+   not be blocked by concurrent activity.  Tables with unique indexes
+   might block if concurrent sessions perform actions that lock or modify
+   rows matching the unique index values being inserted;  the details
+   are covered in <xref linkend="index-unique-checks"/>.
    <literal>ON CONFLICT</literal> can be used to specify an alternative
    action to raising a unique constraint or exclusion constraint
    violation error. (See <xref linkend="sql-on-conflict"/> below.)