Remove belt-and-suspenders guards against buffer pin leaks.
Robert Haas <rhaas@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/buffer/bufmgr.c | modified | +8 −13 |
| src/backend/storage/buffer/localbuf.c | modified | +15 −6 |