pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Peter Geoghegan <pg@heroku.com>
Cc: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Cc: Andrew Sackville-West <awest@janrain.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Cc: Paulo Tanimoto <paulo@janrain.com>
Subject: Re: regression, deadlock in high frequency single-row UPDATE
Date: Fri, 12 Dec 2014 18:16:56 -0300
Message-ID: <20141212211656.GD1768@alvh.no-ip.org> (raw)
In-Reply-To: <CAM3SWZSLfYL-=A_ZcR-n3zaVCdnDak2Mziuf7-WpQfFD4Q22zQ@mail.gmail.com>
References: <CAAdHSJk7E5oNuinLwqTzmqGKRHaMmGa5KwBf9BWAmiNfLyHSgw@mail.gmail.com>
	<5487B8F2.6050806@catalyst.net.nz>
	<20141210193314.GZ1768@alvh.no-ip.org>
	<5488C197.3060900@catalyst.net.nz>
	<548943C7.2030507@catalyst.net.nz>
	<20141211130653.GG1768@alvh.no-ip.org>
	<20141211172256.GB20615@alvh.no-ip.org>
	<548AA8F4.3020905@catalyst.net.nz>
	<20141212205254.GC1768@alvh.no-ip.org>
	<CAM3SWZSLfYL-=A_ZcR-n3zaVCdnDak2Mziuf7-WpQfFD4Q22zQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Peter Geoghegan wrote:
> On Fri, Dec 12, 2014 at 12:52 PM, Alvaro Herrera
> <alvherre@2ndquadrant.com> wrote:
> > Okay, I created a reproducer ... but it doesn't work.  I mean, the
> > commands are fine: if I execute them manually in four sessions in an
> > unpatched server I get a deadlock.  But isolationtester doesn't know to
> > handle more than one blocked session, so it just hangs when the third
> > session blocks after the second one is already blocked.  :-(
> 
> We need a stress-testing framework. I hacked together one for the ON
> CONFLICT UPDATE patch (https://github.com/petergeoghegan/upsert), but
> a more comprehensive effort is needed.

Hm, that's nice, but I hope you realize that a framework based on shell
scripts cannot possibly work for us.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
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 (34+ messages)  latest in thread

Message-ID: <20141212211656.GD1768@alvh.no-ip.org>
Permalink:  ../20141212211656.GD1768@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20141212211656.GD1768@alvh.no-ip.org

 · 

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: alvherre@2ndquadrant.com, pg@heroku.com, mark.kirkwood@catalyst.net.nz, awest@janrain.com, paulo@janrain.com
  Subject: Re: regression, deadlock in high frequency single-row UPDATE
  In-Reply-To: <20141212211656.GD1768@alvh.no-ip.org>
  References: <CAAdHSJk7E5oNuinLwqTzmqGKRHaMmGa5KwBf9BWAmiNfLyHSgw@mail.gmail.com> <5487B8F2.6050806@catalyst.net.nz> <20141210193314.GZ1768@alvh.no-ip.org> <5488C197.3060900@catalyst.net.nz> <548943C7.2030507@catalyst.net.nz> <20141211130653.GG1768@alvh.no-ip.org> <20141211172256.GB20615@alvh.no-ip.org> <548AA8F4.3020905@catalyst.net.nz> <20141212205254.GC1768@alvh.no-ip.org> <CAM3SWZSLfYL-=A_ZcR-n3zaVCdnDak2Mziuf7-WpQfFD4Q22zQ@mail.gmail.com> <20141212211656.GD1768@alvh.no-ip.org>

* 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