MERGE INSERT allows only one VALUES clause
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 5 Apr 2018 11:03:42 +0000 (12:03 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 5 Apr 2018 11:03:42 +0000 (12:03 +0100)
Doc syntax and brief mention of restriction

doc/src/sgml/ref/merge.sgml

index 0ca3d26ff4848001eb5421a5d006ee6fd5d81355..31ba7a841d127fc6e927dec5e3e2e2aabdf6f53e 100644 (file)
@@ -41,7 +41,7 @@ and <replaceable class="parameter">merge_insert</replaceable> is
 
 INSERT [( <replaceable class="parameter">column_name</replaceable> [, ...] )]
 [ OVERRIDING { SYSTEM | USER } VALUE ]
-{ VALUES ( { <replaceable class="parameter">expression</replaceable> | DEFAULT } [, ...] ) | DEFAULT VALUES }
+{ VALUES ( { <replaceable class="parameter">expression</replaceable> | DEFAULT } ) | DEFAULT VALUES }
 
 and <replaceable class="parameter">merge_update</replaceable> is
 
@@ -285,6 +285,7 @@ DELETE
       <command>INSERT</command> actions cannot contain sub-selects. 
      </para>
      <para>
+      Only one <literal>VALUES</literal> clause can be specified.
       The <literal>VALUES</literal> clause can only refer to columns from
       the source relation, since by definition there is no matching target row.
      </para>