pgsql: In ReadOrZeroBuffer (and related entry points), don't bother to

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: In ReadOrZeroBuffer (and related entry points), don't bother to
Date: 2008-08-05 15:09:04
Message-ID: 20080805150904.C81D5755315@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
In ReadOrZeroBuffer (and related entry points), don't bother to call
PageHeaderIsValid when we zero the buffer instead of reading the page in.
The actual performance improvement is probably marginal since this function
isn't very heavily used, but a cycle saved is a cycle earned.

Zdenek Kotala

Modified Files:
--------------
pgsql/src/backend/storage/buffer:
bufmgr.c (r1.235 -> r1.236)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/buffer/bufmgr.c?r1=1.235&r2=1.236)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-08-05 15:17:59 pgsql: Add an ORDER BY to one more SELECT DISTINCT test case, per
Previous Message Magnus Hagander 2008-08-05 12:09:30 pgsql: Move pgstat.tmp into a temporary directory under $PGDATA named