Skip to content

Commit 51aebcd

Browse files
committed
Doc: in back branches, don't call it a row constructor if it isn't really.
Before commit 906bfca, we were not actually processing the righthand side of a multiple-column assignment in UPDATE as a row constructor: it was just a parenthesized list of expressions. Call it that rather than risking confusion by people who would expect the documented behaviors of row constructors to apply. Back-patch to 9.5; before that, the text correctly described the construct as a "list of independent expressions". Discussion: <16288.1479610770@sss.pgh.pa.us>
1 parent 112676f commit 51aebcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/sgml/ref/update.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,9 @@ UPDATE films SET kind = 'Dramatic' WHERE CURRENT OF c_films;
422422
According to the standard, the source value for a parenthesized sub-list of
423423
column names can be any row-valued expression yielding the correct number
424424
of columns. <productname>PostgreSQL</productname> only allows the source
425-
value to be a parenthesized list of expressions (a row constructor) or a
425+
value to be a parenthesized list of expressions or a
426426
sub-<literal>SELECT</>. An individual column's updated value can be
427-
specified as <literal>DEFAULT</> in the row-constructor case, but not
427+
specified as <literal>DEFAULT</> in the list-of-expressions case, but not
428428
inside a sub-<literal>SELECT</>.
429429
</para>
430430
</refsect1>

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