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

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove belt-and-suspenders guards against buffer pin leaks.
Date: 2010-11-25 05:13:34
Message-ID: E1PLU9G-0002U0-Vl@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2010-11-25 05:13:35 pgsql: Add inet_net_ntop.c to .gitignore.
Previous Message Bruce Momjian 2010-11-25 03:01:04 Re: pgsql: Document that a CHECKPOINT before taking a file system snapshot