Re: BUG #14150: Attempted to delete invisible tuple - Mailing list pgsql-bugs

From Andres Freund
Subject Re: BUG #14150: Attempted to delete invisible tuple
Date
Msg-id 20160731223146.52zykyros7wx57t2@alap3.anarazel.de
Whole thread Raw
In response to Re: BUG #14150: Attempted to delete invisible tuple  (Peter Geoghegan <pg@heroku.com>)
Responses Re: BUG #14150: Attempted to delete invisible tuple  (Peter Geoghegan <pg@heroku.com>)
Re: BUG #14150: Attempted to delete invisible tuple  (Oskari Saarenmaa <os@aiven.io>)
List pgsql-bugs
On 2016-07-29 17:37:21 -0700, Peter Geoghegan wrote:
> On Wed, Jul 27, 2016 at 6:12 PM, Peter Geoghegan <pg@heroku.com> wrote:
> > On Wed, Jul 27, 2016 at 6:04 PM, Andres Freund <andres@anarazel.de> wrote:
> >> That it needs a test, or that it's easy to do?
> >
> > That it's easy to write one.
>
> I'll be more concrete: I don't see what choke point is available to
> make control yield after the pre-check determines there is no
> conflict, but before index tuple insertion determines that there is in
> fact a conflict (to reliably trigger a failed specualtive
> insertion/super deletion).

An expression index over a function acquiring a lock looks like it
should do the trick.

Are you looking in writing an updated patch? It seems we're on one page
of the rough direction.

Andres

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: BUG #14170: error message in case LOCALE de_DE.UTF8 is used in combination with CLIENT_ENCODING=LATIN1
Next
From: Peter Geoghegan
Date:
Subject: Re: BUG #14150: Attempted to delete invisible tuple