pgsql: Extend dsm API with a new function dsm_unpin_segment. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Extend dsm API with a new function dsm_unpin_segment.
Date
Msg-id E1bcGpH-0001eQ-EK@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Extend dsm API with a new function dsm_unpin_segment.

If you have previously pinned a segment and decide that you don't
actually want to keep it around until shutdown, this new API lets you
remove the pin.  This is pretty trivial except on Windows, where it
requires closing the duplicate handle that was used to implement the
pin.

Thomas Munro and Amit Kapila, reviewed by Amit Kapila and by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0fda682e542c9acd368588e50a1993fecd3b73e2

Modified Files
--------------
src/backend/storage/ipc/dsm.c      | 117 +++++++++++++++++++++++++++++++++++--
src/backend/storage/ipc/dsm_impl.c |  57 +++++++++++++++++-
src/include/storage/dsm.h          |   1 +
src/include/storage/dsm_impl.h     |   4 +-
4 files changed, 169 insertions(+), 10 deletions(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pgsql: doc: requirepeer is a way to avoid spoofing
Next
From: Tom Lane
Date:
Subject: pgsql: Create an SP-GiST opclass for inet/cidr.