pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Extend dsm API with a new function dsm_unpin_segment.
Date: Tue, 23 Aug 2016 18:53:31 +0000
Message-ID: <E1bcGpH-0001eQ-EK@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (2+ messages)

Message-ID: <E1bcGpH-0001eQ-EK@gemulon.postgresql.org>
Permalink:  ../E1bcGpH-0001eQ-EK@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1bcGpH-0001eQ-EK@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Extend dsm API with a new function dsm_unpin_segment.
  In-Reply-To: <E1bcGpH-0001eQ-EK@gemulon.postgresql.org>
  References: <E1bcGpH-0001eQ-EK@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox