pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Oskari Saarenmaa <os@aiven.io>
Cc: Peter Geoghegan <pg@heroku.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Peter Tripp <peter@chartio.com>
Cc: Virendra Negi <virendra@idyllic-software.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14150: Attempted to delete invisible tuple
Date: Thu, 18 Aug 2016 13:43:42 -0700
Message-ID: <20160818204342.ktav5k7tenerom4v@alap3.anarazel.de> (raw)
In-Reply-To: <24166.1471552719@sss.pgh.pa.us>
References: <CAM3SWZQZb=6FDyhGCf9oyNfCAC+6RC+D3fEm9z6hcMHbrR3XsQ@mail.gmail.com>
	<20160728010423.aepl2nk5e2ecmcfy@alap3.anarazel.de>
	<CAM3SWZSVHocX3GtR2i_9mHjsYk5zCOE494TRTmJPwHhvVoUA-g@mail.gmail.com>
	<CAM3SWZS0u0LcoYbeUp0TQFcR--p8LdDrMmySqXP7i_pYbnP9=w@mail.gmail.com>
	<20160731223146.52zykyros7wx57t2@alap3.anarazel.de>
	<6e11604c-d8a1-93d3-63f2-a02c3048afce@aiven.io>
	<20160818000932.5ugispgqu3iw3g54@alap3.anarazel.de>
	<7969.1471484738@sss.pgh.pa.us>
	<20160818194639.e3izk4gfm2srmumm@alap3.anarazel.de>
	<24166.1471552719@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2016-08-18 16:38:39 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > On 2016-08-17 21:45:38 -0400, Tom Lane wrote:
> >> guaibasaurus thinks this test is still underdetermined.
> 
> > The easiest solution here seems to be another expected file - playing
> > around a few minutes, I couldn't see an easier solution. Better ideas?
> 
> If you think the two outcomes are equally valid, sure.

Both are valid, yes. Will do that.


> You could possibly try to force a single ordering by inserting a sleep
> into some step of the test --- we have some other isolation tests that
> do it that way.  But it's hard to predict how much sleep is enough.

I don't think it's applicable here - s2/3 are woken up by the same lock
release. The order in which the OS lets them run primarily determines
the result visibility. A sleep wouldn't hide the difference in output
order afaics. I guess we could hide the combined steps (insert & sleep)
in a function, but ...

Andres


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (58+ messages)  latest in thread

Message-ID: <20160818204342.ktav5k7tenerom4v@alap3.anarazel.de>
Permalink:  ../20160818204342.ktav5k7tenerom4v@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20160818204342.ktav5k7tenerom4v@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andres@anarazel.de, tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, os@aiven.io, pg@heroku.com, michael.paquier@gmail.com, peter@chartio.com, virendra@idyllic-software.com
  Subject: Re: BUG #14150: Attempted to delete invisible tuple
  In-Reply-To: <20160818204342.ktav5k7tenerom4v@alap3.anarazel.de>
  References: <CAM3SWZQZb=6FDyhGCf9oyNfCAC+6RC+D3fEm9z6hcMHbrR3XsQ@mail.gmail.com> <20160728010423.aepl2nk5e2ecmcfy@alap3.anarazel.de> <CAM3SWZSVHocX3GtR2i_9mHjsYk5zCOE494TRTmJPwHhvVoUA-g@mail.gmail.com> <CAM3SWZS0u0LcoYbeUp0TQFcR--p8LdDrMmySqXP7i_pYbnP9=w@mail.gmail.com> <20160731223146.52zykyros7wx57t2@alap3.anarazel.de> <6e11604c-d8a1-93d3-63f2-a02c3048afce@aiven.io> <20160818000932.5ugispgqu3iw3g54@alap3.anarazel.de> <7969.1471484738@sss.pgh.pa.us> <20160818194639.e3izk4gfm2srmumm@alap3.anarazel.de> <24166.1471552719@sss.pgh.pa.us> <20160818204342.ktav5k7tenerom4v@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox