From: Andrew Sackville-West <awest@janrain.com>
To: Alvaro Herrera <alvherre@2ndquadrant.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: Mon, 15 Dec 2014 12:06:40 -0800
Message-ID: <20141215200640.GJ5679@andrew-ThinkPad-X230> (raw)
In-Reply-To: <20141212215752.GF1768@alvh.no-ip.org>
References: <20141208235552.GZ6930@andrew-ThinkPad-X230>
<54868FA2.80003@catalyst.net.nz>
<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>
<20141212215752.GF1768@alvh.no-ip.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Fri, Dec 12, 2014 at 06:57:52PM -0300, Alvaro Herrera wrote:
> Alvaro Herrera wrote:
> > Alvaro Herrera wrote:
> >
> > > I'm going to experiment with that idea and see if it leads to a
> > > solution. I tried the other idea yesterday (to keep the HW tuple lock
> > > we acquire in heap_lock_tuple until heap_update is done) but aside from
> > > being very complicated and bug-prone, it doesn't solve the problem
> > > anyway.
> >
> > Here's a preliminary patch.
>
> Here's a finished version of this patch, which I messed a bit with and
> so needs some extra testing. I want to push this shortly and backpatch
> to 9.4 and 9.3. I don't want to disrupt the 9.4.0 release next week,
> but it'd be nice not to ship it with this bug.
We have tested this patch on the latest postgresql with our actual
application and it appears to work for us.
We'll be happy to test a patch against the 9.3 series, using our actual
application, as well when it becomes available.
thanks!
A
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: awest@janrain.com, alvherre@2ndquadrant.com, mark.kirkwood@catalyst.net.nz, paulo@janrain.com
Subject: Re: regression, deadlock in high frequency single-row UPDATE
In-Reply-To: <20141215200640.GJ5679@andrew-ThinkPad-X230>
References: <20141208235552.GZ6930@andrew-ThinkPad-X230> <54868FA2.80003@catalyst.net.nz> <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> <20141212215752.GF1768@alvh.no-ip.org> <20141215200640.GJ5679@andrew-ThinkPad-X230>
* 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