Re: SSI freezing bug - Mailing list pgsql-hackers

From Andres Freund
Subject Re: SSI freezing bug
Date
Msg-id 20130920115304.GA25971@awork2.anarazel.de
Whole thread Raw
In response to SSI freezing bug  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Responses Re: SSI freezing bug
List pgsql-hackers
Hi,


On 2013-09-20 13:55:36 +0300, Heikki Linnakangas wrote:
> When a tuple is predicate-locked, the key of the lock is ctid+xmin. However,
> when a tuple is frozen, its xmin is changed to FrozenXid. That effectively
> invalidates any predicate lock on the tuple, as checking for a lock on the
> same tuple later won't find it as the xmin is different.
> 
> Attached is an isolationtester spec to demonstrate this.

Do you have any idea to fix that besides keeping the xmin horizon below the
lowest of the xids that are predicate locked? Which seems nasty to
compute and is probably not trivial to fit into the procarray.c
machinery?

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: dynamic shared memory
Next
From: Andres Freund
Date:
Subject: Re: SSI freezing bug