Skip to content

Commit 2b18743

Browse files
committed
Doc: fix syntax synopsis for INSERT ... ON CONFLICT DO UPDATE.
Commit 906bfca adjusted the syntax synopsis for UPDATE, but missed the fact that the INSERT synopsis now contains a duplicate of that. In passing, improve wording and markup about using a table alias to dodge the conflict with use of "excluded" as a special table name.
1 parent a5d4e3f commit 2b18743

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/src/sgml/ref/insert.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ INSERT INTO <replaceable class="PARAMETER">table_name</replaceable> [ AS <replac
3636

3737
DO NOTHING
3838
DO UPDATE SET { <replaceable class="PARAMETER">column_name</replaceable> = { <replaceable class="PARAMETER">expression</replaceable> | DEFAULT } |
39-
( <replaceable class="PARAMETER">column_name</replaceable> [, ...] ) = ( { <replaceable class="PARAMETER">expression</replaceable> | DEFAULT } [, ...] ) |
39+
( <replaceable class="PARAMETER">column_name</replaceable> [, ...] ) = [ ROW ] ( { <replaceable class="PARAMETER">expression</replaceable> | DEFAULT } [, ...] ) |
4040
( <replaceable class="PARAMETER">column_name</replaceable> [, ...] ) = ( <replaceable class="PARAMETER">sub-SELECT</replaceable> )
4141
} [, ...]
4242
[ WHERE <replaceable class="PARAMETER">condition</replaceable> ]
@@ -174,9 +174,9 @@ INSERT INTO <replaceable class="PARAMETER">table_name</replaceable> [ AS <replac
174174
A substitute name for <replaceable
175175
class="PARAMETER">table_name</replaceable>. When an alias is
176176
provided, it completely hides the actual name of the table.
177-
This is particularly useful when <literal>ON CONFLICT DO
178-
UPDATE</literal> targets a table named excluded, since that's
179-
also the name of the special table representing rows proposed
177+
This is particularly useful when <literal>ON CONFLICT DO UPDATE</>
178+
targets a table named <varname>excluded</>, since that will otherwise
179+
be taken as the name of the special table representing rows proposed
180180
for insertion.
181181
</para>
182182
</listitem>

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