In ReadOrZeroBuffer (and related entry points), don't bother to call
commit6930bd1d479ccfdfc7913a065ce3d5bfd6119697
authortgl <tgl>
Tue, 5 Aug 2008 15:09:04 +0000 (5 15:09 +0000)
committertgl <tgl>
Tue, 5 Aug 2008 15:09:04 +0000 (5 15:09 +0000)
tree221917a2663ff1d079a448723db7f85912a11e67
parentb79934ccea00c9171abc56f7a9029f1c817a39ee
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
src/backend/storage/buffer/bufmgr.c