From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
Cc: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>, elein <elein(at)varlena(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Adding MERGE to the TODO list (resend with subject) |
Date: | 2004-05-10 03:58:12 |
Message-ID: | 200405100358.i4A3wCp02854@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-sql |
Added to TODO:
* Add MERGE command that does UPDATE, or on failure, INSERT
---------------------------------------------------------------------------
Christopher Kings-Lynne wrote:
> >>Except you can keep trying and trying without the outermost transaction
> >>failing.
> >
> > But that won't provide the necessary next key locking you mentioned in
> > your first email, will it?
>
> No, but since I can loop an infinite number of times until either the
> update or insert works, I don't need next key locking.
>
> BTW, the reference in MySQL:
>
> http://dev.mysql.com/doc/mysql/en/REPLACE.html
>
> Hmm...no refernce to next key locking. Maybe that's an Innodb thing...
>
> Anyway, you can see how they've implemented their algorithm.
>
> Here is docs on the DB2 merge command from which the standard was derived:
>
> http://databasejournal.com/features/db2/article.php/10896_3322041_2
>
> Chris
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-05-10 04:03:36 | Re: alter owner on schema? |
Previous Message | Alexander Cohen | 2004-05-10 03:09:21 | full tuple count in cursor. |
From | Date | Subject | |
---|---|---|---|
Next Message | Fabien COELHO | 2004-05-10 07:11:50 | Re: Comments on all system objects |
Previous Message | Tom Lane | 2004-05-09 18:40:31 | Re: Relocatable installs |
From | Date | Subject | |
---|---|---|---|
Next Message | William Anthony Lim | 2004-05-10 08:10:31 | working with schema |
Previous Message | Bernard Cheung | 2004-05-10 02:47:57 | Trigger function to know which fields are being updated |