Обсуждение: pgsql: Extend dsm API with a new function dsm_unpin_segment.

Поиск
Список
Период
Сортировка

pgsql: Extend dsm API with a new function dsm_unpin_segment.

От
Robert Haas
Дата:
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(-)