From: Simon Riggs Date: Thu, 5 Apr 2018 11:03:42 +0000 (+0100) Subject: MERGE INSERT allows only one VALUES clause X-Git-Tag: REL_11_BETA1~357 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5d86181ecc9c441d4c327771c43134de59549cd;p=postgresql MERGE INSERT allows only one VALUES clause Doc syntax and brief mention of restriction --- diff --git a/doc/src/sgml/ref/merge.sgml b/doc/src/sgml/ref/merge.sgml index 0ca3d26ff4..31ba7a841d 100644 --- a/doc/src/sgml/ref/merge.sgml +++ b/doc/src/sgml/ref/merge.sgml @@ -41,7 +41,7 @@ and merge_insert is INSERT [( column_name [, ...] )] [ OVERRIDING { SYSTEM | USER } VALUE ] -{ VALUES ( { expression | DEFAULT } [, ...] ) | DEFAULT VALUES } +{ VALUES ( { expression | DEFAULT } ) | DEFAULT VALUES } and merge_update is @@ -285,6 +285,7 @@ DELETE INSERT actions cannot contain sub-selects. + Only one VALUES clause can be specified. The VALUES clause can only refer to columns from the source relation, since by definition there is no matching target row.