Skip to content

Commit 1b308c9

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 106ab85 commit 1b308c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/sgml/ref/insert.sgml

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy