Re: Promise index tuples for UPSERT - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Promise index tuples for UPSERT
Date
Msg-id 542E804A.4070504@vmware.com
Whole thread Raw
In response to Re: Promise index tuples for UPSERT  (Peter Geoghegan <pg@heroku.com>)
Responses Re: Promise index tuples for UPSERT
Re: Promise index tuples for UPSERT
List pgsql-hackers
On 10/03/2014 01:05 PM, Peter Geoghegan wrote:
> On Fri, Oct 3, 2014 at 3:04 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
>> Is there a test case that demonstrates the problem?
>
> Yes. See my e-mail to Heikki here:
>
> http://www.postgresql.org/message-id/CAM3SWZShbE29KpoD44cVc3vpZJGmDer6k_6FGHiSzeOZGmTFSQ@mail.gmail.com
>
> Testcase is attached.

Simon's approach would actually pass that test case just fine. It 
inserts the (promise) index tuple first, and heap tuple only after that. 
It will fail the test case with more than one unique index, however.

- Heikki



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Promise index tuples for UPSERT
Next
From: Robert Haas
Date:
Subject: Re: TAP test breakage on MacOS X