Demote some sanity checks in BufferIsValid() to assertions.

Robert Haas <rhaas@postgresql.org>

Commit: b6335a3f1b33e5dc52e755956d8648f0813252c4
Author: Robert Haas <rhaas@postgresql.org>
Date: 2011-10-28T21:04:22Z
Releases: 9.2.0
Demote some sanity checks in BufferIsValid() to assertions.

Testing reveals that this macro is a hot-spot for index-only-scans.
Per discussion with Tom Lane.

Files

PathChange+/−
src/include/storage/bufmgr.h modified +10 −6