From aa3faa3c7a7a49b3318059ccaf79bc1886a64707 Mon Sep 17 00:00:00 2001 From: Simon Riggs Date: Tue, 3 Apr 2018 12:13:59 +0100 Subject: WITH support in MERGE Author: Peter Geoghegan Recursive support removed, no tests Docs added by me --- doc/src/sgml/ref/merge.sgml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/merge.sgml b/doc/src/sgml/ref/merge.sgml index a7d44a39b68..0ca3d26ff48 100644 --- a/doc/src/sgml/ref/merge.sgml +++ b/doc/src/sgml/ref/merge.sgml @@ -18,6 +18,7 @@ PostgreSQL documentation +[ WITH with_query [, ...] ] MERGE INTO target_table_name [ [ AS ] target_alias ] USING data_source ON join_condition @@ -391,6 +392,18 @@ DELETE + + with_query + + + The WITH clause allows you to specify one or more + subqueries that can be referenced by name in the MERGE + query. See and + for details. + + + + @@ -597,7 +610,7 @@ WHEN MATCHED THEN This command conforms to the SQL standard. - The DO NOTHING action is an extension to the SQL standard. + The WITH clause and DO NOTHING action are extensions to the SQL standard. -- cgit v1.2.3