pgsql: Move the shared memory size calculation to its own function

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Move the shared memory size calculation to its own function
Дата
Msg-id E1mN43J-0005pw-7i@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Remove some unused variables in TAP tests
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Improve fix pkg-config files for static linking