From: Robert Haas Date: Mon, 25 Apr 2011 13:41:56 +0000 (-0400) Subject: Fix SSI-related assertion failure. X-Git-Tag: REL9_1_BETA1~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b429519d8d1b6ac16e36dacba58ef77f77a621ca;p=postgresql Fix SSI-related assertion failure. Bug #5899, reported by Marko Tiikkaja. Heikki Linnakangas, reviewed by Kevin Grittner and Dan Ports. --- diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c index 1fbd8b39b4..346d6b964d 100644 --- 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);