Re: BUG #5989: Assertion failure on UPDATE of big value - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5989: Assertion failure on UPDATE of big value
Date
Msg-id 27328.1303313171@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #5989: Assertion failure on UPDATE of big value  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: BUG #5989: Assertion failure on UPDATE of big value  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-bugs
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> 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

pgsql-bugs by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: BUG #5989: Assertion failure on UPDATE of big value
Next
From: "Kevin Grittner"
Date:
Subject: Re: BUG #5989: Assertion failure on UPDATE of big value