Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4a9effe

Browse files
committed
doc: remove useless MERGE example
Reported-by: dwayne.towell@gmail.com Discussion: https://postgr.es/m/167699245721.1902146.6479762301617101634@wrigleys.postgresql.org Backpatch-through: master
1 parent e1a76db commit 4a9effe

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

doc/src/sgml/ref/merge.sgml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -707,23 +707,6 @@ WHEN NOT MATCHED THEN
707707
</programlisting>
708708
</para>
709709

710-
<para>
711-
Notice that this would be exactly equivalent to the following
712-
statement because the <literal>MATCHED</literal> result does not change
713-
during execution.
714-
715-
<programlisting>
716-
MERGE INTO customer_account ca
717-
USING (SELECT customer_id, transaction_value FROM recent_transactions) AS t
718-
ON t.customer_id = ca.customer_id
719-
WHEN MATCHED THEN
720-
UPDATE SET balance = balance + transaction_value
721-
WHEN NOT MATCHED THEN
722-
INSERT (customer_id, balance)
723-
VALUES (t.customer_id, t.transaction_value);
724-
</programlisting>
725-
</para>
726-
727710
<para>
728711
Attempt to insert a new stock item along with the quantity of stock. If
729712
the item already exists, instead update the stock count of the existing

0 commit comments

Comments
 (0)