someone working to add merge? - Mailing list pgsql-hackers

From Jaime Casanova
Subject someone working to add merge?
Date
Msg-id c2d9e70e0511110603q1799d811u6e4564be516b10ce@mail.gmail.com
Whole thread Raw
Responses Re: someone working to add merge?
List pgsql-hackers
Hi,


there is someone working in add the MERGE statement?

i don't find much about what a good implementation of merge must have...

i think what it needs to do is something like:

- try to lock the rows for update   - if the lock cannot be immediatly acquire ask why   - if the rows are already
locked,wait and try again?   - if no rows were found try de insert part   - if there was any other error, abort   -
elseupdate 

so i suppose we can reuse many of the code breaking the merge in 3
pieces... for now they are just thougths, i will think more in this
and try to implement it...

comments? ideas? suggestions?

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


pgsql-hackers by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: 8.0 -> 8.1 dump duplicate key problem?
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Getting table name/tuple from OID