Remove doc and code comments about ON CONFLICT deficiencies
authorÁlvaro Herrera <alvherre@kurilemu.de>
Tue, 2 Dec 2025 15:47:18 +0000 (16:47 +0100)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Tue, 2 Dec 2025 15:47:18 +0000 (16:47 +0100)
They have been fixed, so we don't need this text anymore.  This reverts
commit 8b18ed6dfbb8.

Author: Mihail Nikalayeu <mihailnikalayeu@gmail.com>
Discussion: https://postgr.es/m/CADzfLwWo+FV9WSeOah9F1r=4haa6eay1hNvYYy_WfziJeK+aLQ@mail.gmail.com

doc/src/sgml/ref/insert.sgml
src/backend/optimizer/util/plancat.c

index 0598b8dea34d9c0a3709b554d7134789dbb0aa3d..04962e39e128e30a583c0c1e16b401540c34a88f 100644 (file)
@@ -594,15 +594,6 @@ INSERT INTO <replaceable class="parameter">table_name</replaceable> [ AS <replac
     </para>
    </tip>
 
-   <warning>
-    <para>
-      While <command>CREATE INDEX CONCURRENTLY</command> or <command>REINDEX
-      CONCURRENTLY</command> is running on a unique index, <command>INSERT
-      ... ON CONFLICT</command> statements on the same table may unexpectedly
-      fail with a unique violation.
-    </para>
-   </warning>
-
   </refsect2>
  </refsect1>
 
index 4367f107e9c47259fe4d6aee5a61805d0be5ddb3..07f92fac239ad51f9b07d679697f5dc75e776ab6 100644 (file)
@@ -789,11 +789,6 @@ find_relation_notnullatts(PlannerInfo *root, Oid relid)
  * the purposes of inference.  If no opclass (or collation) is specified, then
  * all matching indexes (that may or may not match the default in terms of
  * each attribute opclass/collation) are used for inference.
- *
- * Note: during index CONCURRENTLY operations, different transactions may
- * reference different sets of arbiter indexes. This can lead to false unique
- * constraint violations that wouldn't occur during normal operations.  For
- * more information, see insert.sgml.
  */
 List *
 infer_arbiter_indexes(PlannerInfo *root)