From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #5989: Assertion failure on UPDATE of big value
Date: Wed, 20 Apr 2011 18:12:38 +0300
Message-ID: <4DAEF7E6.7080107@enterprisedb.com> (raw)
In-Reply-To: <4DAEB087020000250003CA8B@gw.wicourts.gov>
References: <201104201411.p3KEBOfA009414@wwwmaster.postgresql.org>
<4DAEB087020000250003CA8B@gw.wicourts.gov>
On 20.04.2011 18:08, Kevin Grittner wrote:
> "Marko Tiikkaja"<marko.tiikkaja@2ndquadrant.com> wrote:
>
>> TRAP: FailedAssertion("!(((bool) (((void*)(&(newTuple->t_self)) !=
>> ((void *)0))&& ((&(newTuple->t_self))->ip_posid != 0))))", File:
>> "predicate.c", Line: 2282)
>
> Am investigating, and have alerted Dan, in case he hasn't noticed
> this thread.
The immediate fix is trivial:
inline patch 1: src/backend/access/heap/heapam.c (+0/-0 lines) download inline-1.patch--- a/src/backend/access/heap/heapam.c+++ b/src/backend/access/heap/heapam.c@@ -2859,7 +2859,7 @@ l2:
* Any existing SIREAD locks on the old tuple must be linked to
the new
* tuple for conflict detection purposes.
*/
- PredicateLockTupleRowVersionLink(relation, &oldtup, newtup);
+ PredicateLockTupleRowVersionLink(relation, &oldtup, heaptup);
if (newbuf != buffer)
LockBuffer(newbuf, BUFFER_LOCK_UNLOCK);
But the question Tom raised about doing this even for non-serializable
transactions is more serious..
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
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: heikki.linnakangas@enterprisedb.com
Subject: Re: BUG #5989: Assertion failure on UPDATE of big value
In-Reply-To: <4DAEF7E6.7080107@enterprisedb.com>
References: <201104201411.p3KEBOfA009414@wwwmaster.postgresql.org> <4DAEB087020000250003CA8B@gw.wicourts.gov> <4DAEF7E6.7080107@enterprisedb.com>
* 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