Remove belt-and-suspenders guards against buffer pin leaks.

Robert Haas <rhaas@postgresql.org>

Commit: c2281ac87cf4828b6b828dc8585a10aeb3a176e0
Author: Robert Haas <rhaas@postgresql.org>
Date: 2010-11-25T05:06:46Z
Releases: 9.1.0
Remove belt-and-suspenders guards against buffer pin leaks.

Forcibly releasing all leftover buffer pins should be unnecessary now
that we have a robust ResourceOwner mechanism, and it significantly
increases the cost of process shutdown.  Instead, in an assert-enabled
build, assert that no pins are held; in a non-assert-enabled build, do
nothing.

Files

PathChange+/−
src/backend/storage/buffer/bufmgr.c modified +8 −13
src/backend/storage/buffer/localbuf.c modified +15 −6