↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / Configuration Parameters

shared_memory_size_in_huge_pages

Reports the number of huge pages that are needed for the main shared memory area based on the specified huge_page_size. If huge pages are not supported, this will be -1. This setting is supported only on Linux. It is always set to -1 on other platforms. For more details about using huge pages on Linux, see Section 18.4.5.

English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

boot val
-1
category
Preset Options
context
internal
documented
true
enumvals
Unknown
extra desc
-1 means huge pages are not supported.
lang
en
max val
2147483647
metadata version
18
min val
-1
name
shared_memory_size_in_huge_pages
short desc
Shows the number of huge pages needed for the main shared memory area.
source
pg-settings-source-snapshot
unit
Unknown
vartype
integer

Definition PG 18

Reports the number of huge pages that are needed for the main shared memory area based on the specified huge_page_size. If huge pages are not supported, this will be -1. This setting is supported only on Linux. It is always set to -1 on other platforms. For more details about using huge pages on Linux, see Section 18.4.5.

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · wiki-repair-20261023:98ec8bd1ee3e6fd36946c68a47c9b495571777bc94409898da8f627fcd4b9306

Text language: en · wiki-repair-20261023:98ec8bd1ee3e6fd36946c68a47c9b495571777bc94409898da8f627fcd4b9306