Extend dsm API with a new function dsm_unpin_mapping.

Robert Haas <rhaas@postgresql.org>

Commit: f7102b04638a882b38cbba7670471a073a939865
Author: Robert Haas <rhaas@postgresql.org>
Date: 2014-10-30T18:55:23Z
Releases: 9.5.0
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.

Files

PathChange+/−
src/backend/storage/ipc/dsm.c modified +18 −0
src/include/storage/dsm.h modified +1 −0