X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 85A4ED1F799 for ; Sun, 9 May 2004 02:19:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 98981-04 for ; Sun, 9 May 2004 02:18:44 -0300 (ADT) Received: from 216.155.88.75.dsl.surnet.cl (216.155.91.100.DSL.surnet.cl [216.155.91.100]) by svr1.postgresql.org (Postfix) with ESMTP id 9A030D1F003 for ; Sun, 9 May 2004 02:18:43 -0300 (ADT) Received: by 216.155.88.75.dsl.surnet.cl (Postfix, from userid 500) id B790013503; Sun, 9 May 2004 01:18:25 -0400 (CLT) Date: Sun, 9 May 2004 01:18:25 -0400 From: Alvaro Herrera To: Christopher Kings-Lynne Cc: Bruce Momjian , elein , PostgreSQL-development Subject: Re: Adding MERGE to the TODO list (resend with subject) Message-ID: <20040509051825.GB917@dcc.uchile.cl> References: <200405082246.i48MkTQ29755@candle.pha.pa.us> <409D8E48.3070805@familyhealth.com.au> <20040509035405.GA917@dcc.uchile.cl> <409DAFEB.7020300@familyhealth.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <409DAFEB.7020300@familyhealth.com.au> User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=2.6 tagged_above=0.0 required=5.0 tests=RCVD_IN_DYNABLOCK, RCVD_IN_SORBS X-Spam-Level: ** X-Archive-Number: 200405/443 X-Sequence-Number: 53521 On Sun, May 09, 2004 at 12:13:31PM +0800, Christopher Kings-Lynne wrote: > >I intend to release locks on subtransaction abort, so if the update > >fails there's room for another transaction to insert the key (which I > >understand should fail?). I guess there's a different locking mechanism > >needed; I believe nested transactions will not be enough. > > 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? -- Alvaro Herrera () "No necesitamos banderas No reconocemos fronteras" (Jorge González)