summaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorAlvaro Herrera2017-03-24 22:27:22 +0000
committerAlvaro Herrera2017-03-28 22:44:30 +0000
commit767bc028e5f001351feb498acef9a87c123093d6 (patch)
tree433551f6a54700041640f7b951f65e5f8cb8c881 /src/backend/tcop/postgres.c
parent2c4debbd0f018aa7322b622c88424a7f68d3081d (diff)
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.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions