pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Extend dsm API with a new function dsm_unpin_mapping.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Extend dsm API with a new function dsm_unpin_mapping.
@ 2014-10-30 19:02 Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2014-10-30 19:02 UTC (permalink / raw)
  To: pgsql-committers

Extend dsm API with a new function dsm_unpin_mapping.

This reassociates a dynamic shared memory handle previous passed to
dsm_pin_mapping with the current resource owner, so that it will be
cleaned up at the end of the current query.

Patch by me.  Review of the function name by Andres Freund, Amit
Kapila, Jim Nasby, Petr Jelinek, and Álvaro Herrera.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f7102b04638a882b38cbba7670471a073a939865

Modified Files
--------------
src/backend/storage/ipc/dsm.c |   18 ++++++++++++++++++
src/include/storage/dsm.h     |    1 +
2 files changed, 19 insertions(+)


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


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Extend dsm API with a new function dsm_unpin_segment.
@ 2016-08-23 18:53 Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2016-08-23 18:53 UTC (permalink / raw)
  To: 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(-)


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


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-08-23 18:53 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-10-30 19:02 pgsql: Extend dsm API with a new function dsm_unpin_mapping. Robert Haas <rhaas@postgresql.org>
2016-08-23 18:53 pgsql: Extend dsm API with a new function dsm_unpin_segment. Robert Haas <rhaas@postgresql.org>

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