pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Andrew Sackville-West <awest@janrain.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: hubert depesz lubaczewski <depesz@gmail.com>
Cc: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Cc: pgsql-bugs@postgresql.org
Cc: Paulo Tanimoto <paulo@janrain.com>
Subject: Re: regression, deadlock in high frequency single-row UPDATE
Date: Tue, 9 Dec 2014 18:43:20 +0100
Message-ID: <20141209174320.GE4922@alap3.anarazel.de> (raw)
In-Reply-To: <CAAdHSJk5zLJH3kPpEaN8KKcHqPbW_99Ma6PDoRpV73qpf2qLYA@mail.gmail.com>
References: <20140731233051.GN17765@andrew-ThinkPad-X230>
	<20140801005950.GF5475@eldon.alvh.no-ip.org>
	<20140804161205.GA30380@andrew-ThinkPad-X230>
	<20140804163027.GI5475@eldon.alvh.no-ip.org>
	<20141208235552.GZ6930@andrew-ThinkPad-X230>
	<54868FA2.80003@catalyst.net.nz>
	<CAKrjmhdM=sRaQARMW62gSuZvGSJF20VX4UgQv4ZOoopxFoT-ZA@mail.gmail.com>
	<20141209141448.GO1768@alvh.no-ip.org>
	<CAAdHSJk5zLJH3kPpEaN8KKcHqPbW_99Ma6PDoRpV73qpf2qLYA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2014-12-09 09:38:33 -0800, Andrew Sackville-West wrote:
> On Tue, Dec 9, 2014 at 6:14 AM, Alvaro Herrera <alvherre@2ndquadrant.com>
> wrote:
> 
> > hubert depesz lubaczewski wrote:
> > > For whatever it's worth, I was able to bisect the problem to this commit:
> > >
> > > commit
> > > 0ac5ad5134f2769ccbaefec73844f8504c4d6182
> > >
> > > Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
> > >
> > > Date:   Wed Jan 23 12:04:59 2013 -0300
> > >
> > >     Improve concurrency of foreign key locking
> >
> > I'm not surprised in the least, TBH.
> >
> >
> Thanks for your attention to this. Is there anything we're doing wrong that
> could improve this in current 9.3 versions?

I don't think anybody can seriously can give you a serious workaround
until the issue has been diagnosed further.

One thing you could try would be to create a unique index that spans all
the columns in the table... That'd prevent usage of lower locklevels
added in the above commit.

Greetings,

Andres Freund

-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, 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: <20141209174320.GE4922@alap3.anarazel.de>
Permalink:  ../20141209174320.GE4922@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20141209174320.GE4922@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@2ndquadrant.com, awest@janrain.com, alvherre@2ndquadrant.com, depesz@gmail.com, mark.kirkwood@catalyst.net.nz, paulo@janrain.com
  Subject: Re: regression, deadlock in high frequency single-row UPDATE
  In-Reply-To: <20141209174320.GE4922@alap3.anarazel.de>
  References: <20140731233051.GN17765@andrew-ThinkPad-X230> <20140801005950.GF5475@eldon.alvh.no-ip.org> <20140804161205.GA30380@andrew-ThinkPad-X230> <20140804163027.GI5475@eldon.alvh.no-ip.org> <20141208235552.GZ6930@andrew-ThinkPad-X230> <54868FA2.80003@catalyst.net.nz> <CAKrjmhdM=sRaQARMW62gSuZvGSJF20VX4UgQv4ZOoopxFoT-ZA@mail.gmail.com> <20141209141448.GO1768@alvh.no-ip.org> <CAAdHSJk5zLJH3kPpEaN8KKcHqPbW_99Ma6PDoRpV73qpf2qLYA@mail.gmail.com> <20141209174320.GE4922@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