1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Introduce GUC shared_memory_size

This runtime-computed GUC shows the size of the server's main shared
memory area, taking into account the amount of shared memory allocated
by extensions as this is calculated after processing
shared_preload_libraries.

Author: Nathan Bossart
Discussion: https://postgr.es/m/F2772387-CE0F-46BF-B5F1-CC55516EB885@amazon.com
This commit is contained in:
Michael Paquier
2021-09-08 12:02:30 +09:00
parent fd0625c7a9
commit bd1788051b
5 changed files with 56 additions and 0 deletions

View File

@ -10275,6 +10275,20 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
</listitem>
</varlistentry>
<varlistentry id="guc-shared-memory-size" xreflabel="shared_memory_size">
<term><varname>shared_memory_size</varname> (<type>integer</type>)
<indexterm>
<primary><varname>shared_memory_size</varname> configuration parameter</primary>
</indexterm>
</term>
<listitem>
<para>
Reports the size of the main shared memory area, rounded up to the
nearest megabyte.
</para>
</listitem>
</varlistentry>
<varlistentry id="guc-ssl-library" xreflabel="ssl_library">
<term><varname>ssl_library</varname> (<type>string</type>)
<indexterm>