Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5790aa4

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 68044fa commit 5790aa4

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
@@ -182,7 +182,7 @@ INSERT INTO <replaceable class="PARAMETER">table_name</replaceable> [ AS <replac
182182
provided, it completely hides the actual name of the table.
183183
This is particularly useful when <literal>ON CONFLICT DO UPDATE</>
184184
targets a table named <varname>excluded</>, since that will otherwise
185-
be taken as the name of the special table representing rows proposed
185+
be taken as the name of the special table representing the row proposed
186186
for insertion.
187187
</para>
188188
</listitem>
@@ -389,7 +389,7 @@ INSERT INTO <replaceable class="PARAMETER">table_name</replaceable> [ AS <replac
389389
conflict. The <literal>SET</literal> and
390390
<literal>WHERE</literal> clauses in <literal>ON CONFLICT DO
391391
UPDATE</literal> have access to the existing row using the
392-
table's name (or an alias), and to rows proposed for insertion
392+
table's name (or an alias), and to the row proposed for insertion
393393
using the special <varname>excluded</varname> table.
394394
<literal>SELECT</> privilege is required on any column in the
395395
target table where corresponding <varname>excluded</varname>

0 commit comments

Comments
 (0)