Re: INSERT...ON DUPLICATE KEY LOCK FOR UPDATE

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: Peter Geoghegan <pg(at)heroku(dot)com>
Cc: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: INSERT...ON DUPLICATE KEY LOCK FOR UPDATE
Date: 2013-11-27 09:20:47
Message-ID: 20131127092047.GD28863@alap2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2013-11-27 01:09:49 -0800, Peter Geoghegan wrote:
> On Tue, Nov 26, 2013 at 8:19 PM, Peter Geoghegan <pg(at)heroku(dot)com> wrote:
> > There are some visibility-related race conditions even still
>
> I also see this, sandwiched between the very many "deadlock detected"
> errors recorded over 6 or so hours (this is in chronological order,
> with no ERRORs omitted within the range shown):
>
> ERROR: deadlock detected
> ERROR: deadlock detected
> ERROR: deadlock detected
> ERROR: unable to fetch updated version of tuple
> ERROR: unable to fetch updated version of tuple
> ERROR: unable to fetch updated version of tuple
> ERROR: unable to fetch updated version of tuple
> ERROR: unable to fetch updated version of tuple
> ERROR: unable to fetch updated version of tuple
> ERROR: unable to fetch updated version of tuple
> ERROR: unable to fetch updated version of tuple
> ERROR: unable to fetch updated version of tuple
> ERROR: unable to fetch updated version of tuple
> ERROR: unable to fetch updated version of tuple
> ERROR: deadlock detected
> ERROR: deadlock detected
> ERROR: deadlock detected
> ERROR: deadlock detected
>
> This, along with the already-discussed "attempted to update invisible
> tuple" forms a full account of unexpected ERRORs seen during the
> extended run of the test case, so far.

I think at least the "unable to fetch updated version of tuple" ERRORs
are likely to be an unrelated 9.3+ BUG that I've recently
reported. Alvaro has a patch. C.f. 20131124000203(dot)GA4403(at)alap2(dot)anarazel(dot)de

Even the "deadlock detected" errors might be a fkey-locking issue. Bug
#8434, but that's really hard to know without more details.

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Naoya Anzai 2013-11-27 09:24:12 Re: PostgreSQL Service on Windows does not start. ~ "is not a valid Win32 application"
Previous Message Andres Freund 2013-11-27 09:15:10 Re: Incomplete freezing when truncating a relation during vacuum