From: | Robert Haas <rhaas(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Avoid repeated CLOG access from heap_hot_search_buffer. |
Date: | 2012-05-02 16:50:13 |
Message-ID: | E1SPckm-0004pj-WC@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/003811042139790a5a479c8264271a3248eda36f
Modified Files
--------------
src/backend/access/heap/heapam.c | 3 +-
src/backend/utils/time/tqual.c | 40 ++++++++++++++++++++++++++++++++++++++
src/include/utils/tqual.h | 2 +
3 files changed, 43 insertions(+), 2 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2012-05-02 17:12:35 | Re: [COMMITTERS] pgsql: Remove dead ports |
Previous Message | Alvaro Herrera | 2012-05-02 16:36:54 | Re: pgsql: More duplicate word removal. |