Re: Adding MERGE to the TODO list (resend with subject)

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, 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-09 16:09:49
Message-ID: 20040509160949.GA3897@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-sql

On Sun, May 09, 2004 at 01:32:58PM +0800, 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.

Oh, I see. Complex stuff ... I wonder how will it work with sequences
-- if one insertion fails and we have to try again, there's a chance a
sequence could be advanced more than once. Note the article skips the
"signal-statement" symbol (is it present in SQL99? What does it do?)

I also wonder if there will be a corresponding RULE implementation ...

The full DB2 reference is at
http://publib.boulder.ibm.com/infocenter/db2help/index.jsp?topic=/com.ibm.db2.udb.doc/admin/r0010873.htm

(signal-statement is something to raise an exception, apparently)

(I wonder why they don't use BNF syntax anymore ...)

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Cuando mañana llegue pelearemos segun lo que mañana exija" (Mowgli)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message wespvp 2004-05-09 17:43:16 Re: Slow network retrieves
Previous Message Tom Lane 2004-05-09 14:32:39 Re: Slow network retrieves

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-05-09 18:40:31 Re: Relocatable installs
Previous Message Alvaro Herrera 2004-05-09 14:59:31 Re: Nested transactions

Browse pgsql-sql by date

  From Date Subject
Next Message Bernard Cheung 2004-05-10 02:47:57 Trigger function to know which fields are being updated
Previous Message Denis Braekhus 2004-05-09 12:43:52 Re: not really SQL but I need info on BLOBs