Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D217C1337C0A for ; Wed, 20 Apr 2011 12:14:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 66834-03-2 for ; Wed, 20 Apr 2011 15:13:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og101.obsmtp.com (exprod7og101.obsmtp.com [64.18.2.155]) by mail.postgresql.org (Postfix) with ESMTP id C009A133798E for ; Wed, 20 Apr 2011 12:12:46 -0300 (ADT) Received: from mail-ew0-f52.google.com ([209.85.215.52]) (using TLSv1) by exprod7ob101.postini.com ([64.18.6.12]) with SMTP ID DSNKTa737RP+GCdJ7dhwo3OrntafXE+pEBDY@postini.com; Wed, 20 Apr 2011 08:12:46 PDT Received: by mail-ew0-f52.google.com with SMTP id 28so232232ewy.25 for ; Wed, 20 Apr 2011 08:12:45 -0700 (PDT) Received: by 10.213.25.79 with SMTP id y15mr3049637ebb.41.1303312365300; Wed, 20 Apr 2011 08:12:45 -0700 (PDT) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi [88.195.122.240]) by mx.google.com with ESMTPS id k51sm699898eei.24.2011.04.20.08.12.39 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Apr 2011 08:12:42 -0700 (PDT) Message-ID: <4DAEF7E6.7080107@enterprisedb.com> Date: Wed, 20 Apr 2011 18:12:38 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.1.16) Gecko/20110307 Icedove/3.0.11 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #5989: Assertion failure on UPDATE of big value References: <201104201411.p3KEBOfA009414@wwwmaster.postgresql.org> <4DAEB087020000250003CA8B@gw.wicourts.gov> In-Reply-To: <4DAEB087020000250003CA8B@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201104/152 X-Sequence-Number: 30071 On 20.04.2011 18:08, Kevin Grittner wrote: > "Marko Tiikkaja" 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: --- 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