]> begriffs open source - ai-pg/blob - full-docs/txt/runtime-config-preset.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / runtime-config-preset.txt
1
2 19.15. Preset Options #
3
4    The following “parameters” are read-only. As such, they have been
5    excluded from the sample postgresql.conf file. These options report
6    various aspects of PostgreSQL behavior that might be of interest to
7    certain applications, particularly administrative front-ends. Most of
8    them are determined when PostgreSQL is compiled or when it is
9    installed.
10
11    block_size (integer) #
12           Reports the size of a disk block. It is determined by the value
13           of BLCKSZ when building the server. The default value is 8192
14           bytes. The meaning of some configuration variables (such as
15           shared_buffers) is influenced by block_size. See Section 19.4
16           for information.
17
18    data_checksums (boolean) #
19           Reports whether data checksums are enabled for this cluster. See
20           -k for more information.
21
22    data_directory_mode (integer) #
23           On Unix systems this parameter reports the permissions the data
24           directory (defined by data_directory) had at server startup. (On
25           Microsoft Windows this parameter will always display 0700.) See
26           the initdb -g option for more information.
27
28    debug_assertions (boolean) #
29           Reports whether PostgreSQL has been built with assertions
30           enabled. That is the case if the macro USE_ASSERT_CHECKING is
31           defined when PostgreSQL is built (accomplished e.g., by the
32           configure option --enable-cassert). By default PostgreSQL is
33           built without assertions.
34
35    huge_pages_status (enum) #
36           Reports the state of huge pages in the current instance: on,
37           off, or unknown (if displayed with postgres -C). This parameter
38           is useful to determine whether allocation of huge pages was
39           successful under huge_pages=try. See huge_pages for more
40           information.
41
42    integer_datetimes (boolean) #
43           Reports whether PostgreSQL was built with support for
44           64-bit-integer dates and times. As of PostgreSQL 10, this is
45           always on.
46
47    in_hot_standby (boolean) #
48           Reports whether the server is currently in hot standby mode.
49           When this is on, all transactions are forced to be read-only.
50           Within a session, this can change only if the server is promoted
51           to be primary. See Section 26.4 for more information.
52
53    max_function_args (integer) #
54           Reports the maximum number of function arguments. It is
55           determined by the value of FUNC_MAX_ARGS when building the
56           server. The default value is 100 arguments.
57
58    max_identifier_length (integer) #
59           Reports the maximum identifier length. It is determined as one
60           less than the value of NAMEDATALEN when building the server. The
61           default value of NAMEDATALEN is 64; therefore the default
62           max_identifier_length is 63 bytes, which can be less than 63
63           characters when using multibyte encodings.
64
65    max_index_keys (integer) #
66           Reports the maximum number of index keys. It is determined by
67           the value of INDEX_MAX_KEYS when building the server. The
68           default value is 32 keys.
69
70    num_os_semaphores (integer) #
71           Reports the number of semaphores that are needed for the server
72           based on the configured number of allowed connections
73           (max_connections), allowed autovacuum worker processes
74           (autovacuum_max_workers), allowed WAL sender processes
75           (max_wal_senders), allowed background processes
76           (max_worker_processes), etc.
77
78    segment_size (integer) #
79           Reports the number of blocks (pages) that can be stored within a
80           file segment. It is determined by the value of RELSEG_SIZE when
81           building the server. The maximum size of a segment file in bytes
82           is equal to segment_size multiplied by block_size; by default
83           this is 1GB.
84
85    server_encoding (string) #
86           Reports the database encoding (character set). It is determined
87           when the database is created. Ordinarily, clients need only be
88           concerned with the value of client_encoding.
89
90    server_version (string) #
91           Reports the version number of the server. It is determined by
92           the value of PG_VERSION when building the server.
93
94    server_version_num (integer) #
95           Reports the version number of the server as an integer. It is
96           determined by the value of PG_VERSION_NUM when building the
97           server.
98
99    shared_memory_size (integer) #
100           Reports the size of the main shared memory area, rounded up to
101           the nearest megabyte.
102
103    shared_memory_size_in_huge_pages (integer) #
104           Reports the number of huge pages that are needed for the main
105           shared memory area based on the specified huge_page_size. If
106           huge pages are not supported, this will be -1.
107
108           This setting is supported only on Linux. It is always set to -1
109           on other platforms. For more details about using huge pages on
110           Linux, see Section 18.4.5.
111
112    ssl_library (string) #
113           Reports the name of the SSL library that this PostgreSQL server
114           was built with (even if SSL is not currently configured or in
115           use on this instance), for example OpenSSL, or an empty string
116           if none.
117
118    wal_block_size (integer) #
119           Reports the size of a WAL disk block. It is determined by the
120           value of XLOG_BLCKSZ when building the server. The default value
121           is 8192 bytes.
122
123    wal_segment_size (integer) #
124           Reports the size of write ahead log segments. The default value
125           is 16MB. See Section 28.5 for more information.