Allow DSM segments to be created as pinned dsm_create and dsm_attach assumed that a current resource owner was always in place. Exploration with the API show that this is inconvenient: sometimes one must create a dummy resowner, create/attach the DSM, only to pin the mapping later, which is wasteful. Change create/attach so that if there is no current resowner, the dsm is effectively pinned right from the start.
Discussion: https://postgr.es/m/[email protected] Reviewed by Thomas Munro. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/767bc028e5f001351feb498acef9a87c123093d6 Modified Files -------------- src/backend/storage/ipc/dsm.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
