]> granicus.if.org Git - postgresql/commit
Avoid repeated CLOG access from heap_hot_search_buffer.
authorRobert Haas <rhaas@postgresql.org>
Wed, 2 May 2012 16:40:07 +0000 (12:40 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 2 May 2012 16:40:07 +0000 (12:40 -0400)
commit003811042139790a5a479c8264271a3248eda36f
treebe741a3df9671975d71acbaaf6ef20a86116b677
parent1b4998fd44bad9f8ab90e741cadd6519f6c94a44
Avoid repeated CLOG access from heap_hot_search_buffer.

At the time we check whether the tuple is dead to all running
transactions, we've already verified that it isn't visible to our
scan, setting hint bits if appropriate.  So there's no need to
recheck CLOG for the all-dead test we do just a moment later.
So, add HeapTupleIsSurelyDead() to test the appropriate condition
under the assumption that all relevant hit bits are already set.

Review by Tom Lane.
src/backend/access/heap/heapam.c
src/backend/utils/time/tqual.c
src/include/utils/tqual.h