Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4f63f6a

Browse files
committed
doc: clarify that "excluded" ON CONFLICT is a single row
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
1 parent 6959e97 commit 4f63f6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/sgml/ref/insert.sgml

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ INSERT INTO <replaceable class="parameter">table_name</replaceable> [ AS <replac
181181
provided, it completely hides the actual name of the table.
182182
This is particularly useful when <literal>ON CONFLICT DO UPDATE</literal>
183183
targets a table named <varname>excluded</varname>, since that will otherwise
184-
be taken as the name of the special table representing rows proposed
184+
be taken as the name of the special table representing the row proposed
185185
for insertion.
186186
</para>
187187
</listitem>
@@ -401,7 +401,7 @@ INSERT INTO <replaceable class="parameter">table_name</replaceable> [ AS <replac
401401
conflict. The <literal>SET</literal> and
402402
<literal>WHERE</literal> clauses in <literal>ON CONFLICT DO
403403
UPDATE</literal> have access to the existing row using the
404-
table's name (or an alias), and to rows proposed for insertion
404+
table's name (or an alias), and to the row proposed for insertion
405405
using the special <varname>excluded</varname> table.
406406
<literal>SELECT</literal> privilege is required on any column in the
407407
target table where corresponding <varname>excluded</varname>

0 commit comments

Comments
 (0)