shared_memory_size_in_huge_pages

A preset configuration parameter reporting the number of huge pages needed
This entry relates to a PostgreSQL feature which is part of PostgreSQL 15, due to be released in late 2022.

shared_memory_size_in_huge_pages is a preset configuration parameter reporting the number of huge pages needed for the main shared memory area, based on the specified huge_page_size.

shared_memory_size_in_huge_pages was added in PostgreSQL 15.

Usage

On Linux systems, shared_memory_size_in_huge_pages is computed at runtime if huge pages are available.

If huge pages are not available, or on systems other than Linux, the reported value is always -1.

Change history

Categories

GUC configuration item, Memory, Preset configuration item

See also

shared_memory_size, huge_page_size