Re: MERGE vs REPLACE

From: Jaime Casanova <systemguards(at)gmail(dot)com>
To: josh(at)agliodbs(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: MERGE vs REPLACE
Date: 2005-11-11 22:04:25
Message-ID: c2d9e70e0511111404u3d1387cej58e5564b4b76bbe8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 11/11/05, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> Guys,
>
> > I understand you well... what i was trying to say is that i prefer
> > MERGE (standard SQL command) to be done because the functionally it
> > has (basically a merge of two tables) seems to me to be more usefull
> > than REPLACE (MySql Command)...
>
> But even REPLACE requires predicate locking. There's no real way to get
> around it.
>
> --Josh
>

why? seems that REPLACE only work if there are at least one row matching...

--
Atentamente,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2005-11-11 22:40:54 Re: MERGE vs REPLACE
Previous Message Josh Berkus 2005-11-11 21:55:49 Re: MERGE vs REPLACE