From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move the shared memory size calculation to its own function
Date: Mon, 06 Sep 2021 02:08:05 +0000
Message-ID: <E1mN43J-0005pw-7i@gemulon.postgresql.org> (raw)
Move the shared memory size calculation to its own function
This change refactors the shared memory size calculation in
CreateSharedMemoryAndSemaphores() to its own function. This is intended
for use in a future change related to the setup of huge pages and shared
memory with some GUCs, while useful on its own for extensions.
Author: Nathan Bossart
Discussion: https://postgr.es/m/F2772387-CE0F-46BF-B5F1-CC55516EB885@amazon.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0bd305ee1d427ef29f5fa4fa20567e3b3f5ff792
Modified Files
--------------
src/backend/storage/ipc/ipci.c | 142 ++++++++++++++++++++++++-----------------
src/include/storage/ipc.h | 1 +
2 files changed, 84 insertions(+), 59 deletions(-)
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: michael@paquier.xyz
Subject: Re: pgsql: Move the shared memory size calculation to its own function
In-Reply-To: <E1mN43J-0005pw-7i@gemulon.postgresql.org>
References: <E1mN43J-0005pw-7i@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