Re: MERGE vs REPLACE - Mailing list pgsql-hackers

From Petr Jelinek
Subject Re: MERGE vs REPLACE
Date
Msg-id 4383A8A8.30805@seznam.cz
Whole thread Raw
In response to Re: MERGE vs REPLACE  (Jaime Casanova <systemguards@gmail.com>)
Responses Re: MERGE vs REPLACE
List pgsql-hackers
Jaime Casanova wrote:
> 
> the FROM clause is required by default (starting with 8.1) unless you
> change a postgresql.conf parameter.
> 
> and i don't think that idea will have any fan...
> 

Bruce already replied to your first statement so, what idea won't have 
any fan ? It's not that we would change what MERGE does. Postgres just 
does not requeire FROM clause in SELECT and second parameter of MERGE 
can be SELECT which means you can do what REPLACE) does without problems 
and without breaking something or violating standard and like I said you 
can do the same in oracle using dual.

Btw about that keys, oracle gives error on many-to-one or many-to-many 
relationship between the source and target tables.

-- 
Regards
Petr Jelinek (PJMODOS)



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Improving count(*)
Next
From: Larry Rosenman
Date:
Subject: Re: server closed connection on a select query