remove lock protection on HeapTupleSatisfiesVacuum - Mailing list pgsql-patches

From Qingqing Zhou
Subject remove lock protection on HeapTupleSatisfiesVacuum
Date
Msg-id Pine.LNX.4.58.0606052227580.862@eon.cs
Whole thread Raw
Responses Re: remove lock protection on HeapTupleSatisfiesVacuum  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches

Attached is a patch to remove the lock protection for
HeapTupleSatisfiesVacuum() in index code. The basic idea is: if we can do
a pin/lock/unlock sequence on a page, then without locking again, we are
gauranteed that there is no vacuum process acting on the same page.
According to buffer pool access rule #4, we then can examine/change the
hints bit safely.

Regards,
Qingqing

Attachment

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Allow commenting of variables in postgresql.conf to -
Next
From: Tom Lane
Date:
Subject: Re: remove lock protection on HeapTupleSatisfiesVacuum