pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add shared_memory_type GUC.
Date: Sun, 03 Feb 2019 11:53:02 +0000
Message-ID: <E1gqGKc-0004Ci-O8@gemulon.postgresql.org> (raw)

Add shared_memory_type GUC.

Since 9.3 we have used anonymous shared mmap for our main shared memory
region, except in EXEC_BACKEND builds.  Provide a GUC so that users
can opt for System V shared memory once again, like in 9.2 and earlier.

A later patch proposes to add huge/large page support for AIX, which
requires System V shared memory and provided the motivation to revive
this possibility.  It may also be useful on some BSDs.

Author: Andres Freund (revived and documented by Thomas Munro)
Discussion: https://postgr.es/m/HE1PR0202MB28126DB4E0B6621CC6A1A91286D90%40HE1PR0202MB2812.eurprd02.prod.outlook...
Discussion: https://postgr.es/m/2AE143D2-87D3-4AD1-AC78-CE2258230C05%40FreeBSD.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f1bebef60ec8f557324cd3bfc1671da1318de968

Modified Files
--------------
doc/src/sgml/config.sgml                      | 25 ++++++++++++++++
doc/src/sgml/runtime.sgml                     | 17 +++++++----
src/backend/port/sysv_shmem.c                 | 42 ++++++++++-----------------
src/backend/storage/ipc/ipci.c                |  2 ++
src/backend/utils/misc/guc.c                  | 23 +++++++++++++++
src/backend/utils/misc/postgresql.conf.sample |  6 ++++
src/include/storage/pg_shmem.h                | 19 +++++++++++-
7 files changed, 101 insertions(+), 33 deletions(-)



Message-ID: <E1gqGKc-0004Ci-O8@gemulon.postgresql.org>
Permalink:  ../E1gqGKc-0004Ci-O8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gqGKc-0004Ci-O8@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Add shared_memory_type GUC.
  In-Reply-To: <E1gqGKc-0004Ci-O8@gemulon.postgresql.org>
  References: <E1gqGKc-0004Ci-O8@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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