pgsql: Remove belt-and-suspenders guards against buffer pin leaks. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Remove belt-and-suspenders guards against buffer pin leaks.
Date
Msg-id E1PLU9G-0002U0-Vl@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=c2281ac87cf4828b6b828dc8585a10aeb3a176e0

Modified Files
--------------
src/backend/storage/buffer/bufmgr.c   |   21 ++++++++-------------
src/backend/storage/buffer/localbuf.c |   21 +++++++++++++++------
2 files changed, 23 insertions(+), 19 deletions(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pgsql: Document that a CHECKPOINT before taking a file system snapshot
Next
From: Robert Haas
Date:
Subject: pgsql: Add inet_net_ntop.c to .gitignore.