20.15. Preset Options
The following “parameters” are read-only. As such, they have been excluded from the sample
postgresql.conf file. These options report various aspects of PostgreSQL behavior that might be of interest to certain applications, particularly administrative front-ends. Most of them are determined when PostgreSQL is compiled or when it is installed.
Reports the size of a disk block. It is determined by the value of
BLCKSZwhen building the server. The default value is 8192 bytes. The meaning of some configuration variables (such as shared_buffers) is influenced by
block_size. See Section 20.4 for information.
Reports whether data checksums are enabled for this cluster. See data checksums for more information.
On Unix systems this parameter reports the permissions the data directory (defined by data_directory) had at server startup. (On Microsoft Windows this parameter will always display
0700.) See group access for more information.
Reports whether PostgreSQL has been built with assertions enabled. That is the case if the macro
USE_ASSERT_CHECKINGis defined when PostgreSQL is built (accomplished e.g., by the
--enable-cassert). By default PostgreSQL is built without assertions.
Reports whether PostgreSQL was built with support for 64-bit-integer dates and times. As of PostgreSQL 10, this is always
Reports whether the server is currently in hot standby mode. When this is
on, all transactions are forced to be read-only. Within a session, this can change only if the server is promoted to be primary. See Section 27.4 for more information.
Reports the locale in which sorting of textual data is done. See Section 24.1 for more information. This value is determined when a database is created.
Reports the locale that determines character classifications. See Section 24.1 for more information. This value is determined when a database is created. Ordinarily this will be the same as
lc_collate, but for special applications it might be set differently.
Reports the maximum number of function arguments. It is determined by the value of
FUNC_MAX_ARGSwhen building the server. The default value is 100 arguments.
Reports the maximum identifier length. It is determined as one less than the value of
NAMEDATALENwhen building the server. The default value of
NAMEDATALENis 64; therefore the default
max_identifier_lengthis 63 bytes, which can be less than 63 characters when using multibyte encodings.
Reports the maximum number of index keys. It is determined by the value of
INDEX_MAX_KEYSwhen building the server. The default value is 32 keys.
Reports the number of blocks (pages) that can be stored within a file segment. It is determined by the value of
RELSEG_SIZEwhen building the server. The maximum size of a segment file in bytes is equal to
block_size; by default this is 1GB.
Reports the database encoding (character set). It is determined when the database is created. Ordinarily, clients need only be concerned with the value of client_encoding.
Reports the version number of the server. It is determined by the value of
PG_VERSIONwhen building the server.
Reports the version number of the server as an integer. It is determined by the value of
PG_VERSION_NUMwhen building the server.
Reports the size of the main shared memory area, rounded up to the nearest megabyte.
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
This setting is supported only on Linux. It is always set to
-1on other platforms. For more details about using huge pages on Linux, see Section 19.4.5.
Reports the name of the SSL library that this PostgreSQL server was built with (even if SSL is not currently configured or in use on this instance), for example
OpenSSL, or an empty string if none.
Reports the size of a WAL disk block. It is determined by the value of
XLOG_BLCKSZwhen building the server. The default value is 8192 bytes.
Reports the size of write ahead log segments. The default value is 16MB. See Section 30.5 for more information.