diff options
author | Bruce Momjian <bruce@momjian.us> | 2022-07-14 15:17:19 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2022-07-14 15:17:19 -0400 |
commit | ac480b074f4ebad1ae8947b1eeb9790e8925f94e (patch) | |
tree | d5449640f3462f5b791bdc06d2acfc44051f84d8 | |
parent | 64695a3ce646a2c255c89b268f9876f43c585025 (diff) | |
download | postgresql-ac480b074f4ebad1ae8947b1eeb9790e8925f94e.tar.gz postgresql-ac480b074f4ebad1ae8947b1eeb9790e8925f94e.zip |
doc: mention that INSERT can block because of unique indexes
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
-rw-r--r-- | doc/src/sgml/ref/insert.sgml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/insert.sgml b/doc/src/sgml/ref/insert.sgml index e829c61642d..f2da16867d2 100644 --- a/doc/src/sgml/ref/insert.sgml +++ b/doc/src/sgml/ref/insert.sgml @@ -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" |