pgsql: Extend dsm API with a new function dsm_unpin_segment.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Extend dsm API with a new function dsm_unpin_segment.
Date: 2016-08-23 18:53:31
Message-ID: E1bcGpH-0001eQ-EK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-08-23 19:16:55 pgsql: Create an SP-GiST opclass for inet/cidr.
Previous Message Bruce Momjian 2016-08-23 17:54:03 Re: pgsql: doc: requirepeer is a way to avoid spoofing