Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 595891337BA8 for ; Wed, 20 Apr 2011 12:26:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 30106-08 for ; Wed, 20 Apr 2011 15:26:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 873881337B93 for ; Wed, 20 Apr 2011 12:26:15 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p3KFQCZq027329; Wed, 20 Apr 2011 11:26:12 -0400 (EDT) To: Heikki Linnakangas cc: pgsql-bugs@postgresql.org 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> Comments: In-reply-to Heikki Linnakangas message dated "Wed, 20 Apr 2011 18:12:38 +0300" Date: Wed, 20 Apr 2011 11:26:11 -0400 Message-ID: <27328.1303313171@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/153 X-Sequence-Number: 30072 Heikki Linnakangas writes: > 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); Egad. If that's it, my confidence in the amount of testing SSI has gotten has just dropped dramatically. regards, tom lane