doc: clarify that "excluded" ON CONFLICT is a single row
authorBruce Momjian <[email protected]>
Thu, 14 Jul 2022 19:33:27 +0000 (15:33 -0400)
committerBruce Momjian <[email protected]>
Thu, 14 Jul 2022 19:33:27 +0000 (15:33 -0400)
Original patch by David G. Johnston.

Reported-by: David G. Johnston
Discussion: https://postgr.es/m/CAKFQuwa4J0+WuO7kW1PLbjoEvzPN+Q_j+P2bXxNnCLaszY7ZdQ@mail.gmail.com

Backpatch-through: 10

doc/src/sgml/ref/insert.sgml

index 2e89ed33c900ee8695cfbd152975c99a1e9dbfa3..904812458cc9cf2b7818dc2360ce93fc5013ea94 100644 (file)
@@ -182,7 +182,7 @@ INSERT INTO <replaceable class="PARAMETER">table_name</replaceable> [ AS <replac
         provided, it completely hides the actual name of the table.
         This is particularly useful when <literal>ON CONFLICT DO UPDATE</>
         targets a table named <varname>excluded</>, since that will otherwise
-        be taken as the name of the special table representing rows proposed
+        be taken as the name of the special table representing the row proposed
         for insertion.
        </para>
       </listitem>
@@ -389,7 +389,7 @@ INSERT INTO <replaceable class="PARAMETER">table_name</replaceable> [ AS <replac
         conflict.  The <literal>SET</literal> and
         <literal>WHERE</literal> clauses in <literal>ON CONFLICT DO
         UPDATE</literal> have access to the existing row using the
-        table's name (or an alias), and to rows proposed for insertion
+        table's name (or an alias), and to the row proposed for insertion
         using the special <varname>excluded</varname> table.
         <literal>SELECT</> privilege is required on any column in the
         target table where corresponding <varname>excluded</varname>