Re: someone working to add merge?
От
Peter Eisentraut
Тема
Re: someone working to add merge?
Дата
Msg-id
200511111837.19810.peter_e@gmx.net
Ответ на
Re: someone working to add merge? (Josh Berkus)
Список
Дерево обсуждения
someone working to add merge? Jaime Casanova <systemguards@gmail.com>
Re: someone working to add merge? Josh Berkus <josh@agliodbs.com>
Re: someone working to add merge? Peter Eisentraut <peter_e@gmx.net>
Re: someone working to add merge? Csaba Nagy <nagy@ecircle-ag.com>
Re: someone working to add merge? Bruno Wolff III <bruno@wolff.to>
Re: someone working to add merge? Csaba Nagy <nagy@ecircle-ag.com>
Re: someone working to add merge? Alvaro Herrera <alvherre@commandprompt.com>
Re: someone working to add merge? Tom Lane <tgl@sss.pgh.pa.us>
Re: someone working to add merge? Bruce Momjian <pgman@candle.pha.pa.us>
Re: someone working to add merge? Peter Eisentraut <peter_e@gmx.net>
Re: someone working to add merge? Martijn van Oosterhout <kleptog@svana.org>
Re: someone working to add merge? "Jim C. Nasby" <jnasby@pervasive.com>
Re: someone working to add merge? Bruce Momjian <pgman@candle.pha.pa.us>
Re: someone working to add merge? Csaba Nagy <nagy@ecircle-ag.com>
Re: someone working to add merge? Jaime Casanova <systemguards@gmail.com>
Re: someone working to add merge? Tom Lane <tgl@sss.pgh.pa.us>
Re: someone working to add merge? Peter Eisentraut <peter_e@gmx.net>
Re: someone working to add merge? Tom Lane <tgl@sss.pgh.pa.us>
Re: someone working to add merge? Peter Eisentraut <peter_e@gmx.net>
Re: someone working to add merge? Tom Lane <tgl@sss.pgh.pa.us>
Re: someone working to add merge? Jan Wieck <JanWieck@Yahoo.com>
Re: someone working to add merge? Martijn van Oosterhout <kleptog@svana.org>
Re: someone working to add merge? Jan Wieck <JanWieck@Yahoo.com>
Re: someone working to add merge? Martijn van Oosterhout <kleptog@svana.org>
Re: someone working to add merge? Jan Wieck <JanWieck@Yahoo.com>
Re: someone working to add merge? Martijn van Oosterhout <kleptog@svana.org>
Re: someone working to add merge? Jaime Casanova <systemguards@gmail.com>
Re: someone working to add merge? Peter Eisentraut <peter_e@gmx.net>
Re: someone working to add merge? Jaime Casanova <systemguards@gmail.com>
Re: someone working to add merge? Csaba Nagy <nagy@ecircle-ag.com>
Re: someone working to add merge? Andrew Dunstan <andrew@dunslane.net>
Josh Berkus wrote: > Funny, we were just discussing this at OpenDBCon. Seems that you > can't do a full implementation of MERGE without Predicate Locking > (the ability to say "lock this table against inserts or updates of > any row with key=5"). However, Peter suggested that we could do a > proof-of-concept implementation, working out syntax and trigger > issues, based on a full table lock and do the hard work once it was > proved to be feasable. Yes, I've started to work on this. Realizing that the current way to manually do an UPDATE-else-INSERT or DELETE-then-INSERT involves a table lock anyway, a MERGE implementation using a table lock would at least give some convenience benefit to users. (And possibly some performance, too, if the decision logic is currently run in the client.) A predicate locking implementation for MERGE might actually not be all that complicated, because you only need to look on pk = constant, not on arbitrary expressions. Nevertheless, I think it's best to write the MERGE command first and then optimize the locking. -- Peter Eisentraut http://developer.postgresql.org/~petere/
В списке pgsql-hackers по дате отправления