Re: MERGE vs REPLACE - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: MERGE vs REPLACE
Date
Msg-id 200511132207.42881.peter_e@gmx.net
Whole thread Raw
In response to Re: MERGE vs REPLACE  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: MERGE vs REPLACE
List pgsql-hackers
Tom Lane wrote:
> IIRC, SQL's MERGE deals with this by offering two quite separate
> specifications of what to do when there is or isn't already a
> matching row.

In that regard, MERGE is quite flexible, but MERGE doesn't address the 
point of REPLACE, because MERGE requires *two* tables as input, whereas 
REPLACE only takes *one*.  Unless someone can show that you can trick 
MERGE into doing the REPLACE job anyway, we're not discussing the same 
thing.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 8.1 substring bug?
Next
From: Tom Lane
Date:
Subject: Re: Supporting NULL elements in arrays