someone working to add merge?

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема someone working to add merge?
Дата
Msg-id c2d9e70e0511110603q1799d811u6e4564be516b10ce@mail.gmail.com
обсуждение исходный текст
Ответы Re: someone working to add merge?  (Josh Berkus <josh@agliodbs.com>)
Список 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 по дате отправления:

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: Re: 8.0 -> 8.1 dump duplicate key problem?
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Getting table name/tuple from OID