Skip to content

Commit 2941138

Browse files
committed
doc: Fix description of some GUCs in docs and postgresql.conf.sample
The following parameters have been imprecise, or incorrect, about their description (PGC_POSTMASTER or PGC_SIGHUP): - autovacuum_work_mem (docs, as of 9.6~) - huge_page_size (docs, as of 14~) - max_logical_replication_workers (docs, as of 10~) - max_sync_workers_per_subscription (docs, as of 10~) - min_dynamic_shared_memory (docs, as of 14~) - recovery_init_sync_method (postgresql.conf.sample, as of 14~) - remove_temp_files_after_crash (docs, as of 14~) - restart_after_crash (docs, as of 9.6~) - ssl_min_protocol_version (docs, as of 12~) - ssl_max_protocol_version (docs, as of 12~) This commit adjusts the description of all these parameters to be more consistent with the practice used for the others. Revewed-by: Justin Pryzby Discussion: https://postgr.es/m/YK2ltuLpe+FbRXzA@paquier.xyz Backpatch-through: 9.6
1 parent 6f4bdf8 commit 2941138

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

doc/src/sgml/config.sgml

+34-4
Original file line numberDiff line numberDiff line change
@@ -1472,6 +1472,11 @@ include_dir 'conf.d'
14721472
The default is <literal>TLSv1.2</literal>, which satisfies industry
14731473
best practices as of this writing.
14741474
</para>
1475+
1476+
<para>
1477+
This parameter can only be set in the <filename>postgresql.conf</filename>
1478+
file or on the server command line.
1479+
</para>
14751480
</listitem>
14761481
</varlistentry>
14771482

@@ -1490,6 +1495,11 @@ include_dir 'conf.d'
14901495
useful for testing or if some component has issues working with a
14911496
newer protocol.
14921497
</para>
1498+
1499+
<para>
1500+
This parameter can only be set in the <filename>postgresql.conf</filename>
1501+
file or on the server command line.
1502+
</para>
14931503
</listitem>
14941504
</varlistentry>
14951505

@@ -1703,7 +1713,7 @@ include_dir 'conf.d'
17031713
<xref linkend="guc-huge-pages"/>.
17041714
The default is zero (<literal>0</literal>).
17051715
When set to <literal>0</literal>, the default huge page size on the
1706-
system will be used.
1716+
system will be used. This parameter can only be set at server start.
17071717
</para>
17081718
<para>
17091719
Some commonly available page sizes on modern 64 bit server architectures include:
@@ -1900,6 +1910,9 @@ include_dir 'conf.d'
19001910
the value of <xref linkend="guc-maintenance-work-mem"/> should
19011911
be used instead. The setting has no effect on the behavior of
19021912
<command>VACUUM</command> when run in other contexts.
1913+
This parameter can only be set in the
1914+
<filename>postgresql.conf</filename> file or on the server command
1915+
line.
19031916
</para>
19041917
</listitem>
19051918
</varlistentry>
@@ -2029,7 +2042,8 @@ include_dir 'conf.d'
20292042
the <varname>huge_pages</varname> setting on operating systems where
20302043
that is supported, and may be more likely to benefit from larger pages
20312044
on operating systems where that is managed automatically.
2032-
The default value is <literal>0</literal> (none).
2045+
The default value is <literal>0</literal> (none). This parameter can
2046+
only be set at server start.
20332047
</para>
20342048
</listitem>
20352049
</varlistentry>
@@ -4794,7 +4808,8 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
47944808
<varname>max_worker_processes</varname>.
47954809
</para>
47964810
<para>
4797-
The default value is 4.
4811+
The default value is 4. This parameter can only be set at server
4812+
start.
47984813
</para>
47994814
</listitem>
48004815
</varlistentry>
@@ -4819,7 +4834,9 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
48194834
<varname>max_logical_replication_workers</varname>.
48204835
</para>
48214836
<para>
4822-
The default value is 2.
4837+
The default value is 2. This parameter can only be set in the
4838+
<filename>postgresql.conf</filename> file or on the server command
4839+
line.
48234840
</para>
48244841
</listitem>
48254842
</varlistentry>
@@ -9836,6 +9853,11 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
98369853
useful to disable the restart so that the clusterware can gain
98379854
control and take any actions it deems appropriate.
98389855
</para>
9856+
9857+
<para>
9858+
This parameter can only be set in the <filename>postgresql.conf</filename>
9859+
file or on the server command line.
9860+
</para>
98399861
</listitem>
98409862
</varlistentry>
98419863

@@ -9853,6 +9875,11 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
98539875
retained and may be used for debugging, for example. Repeated crashes
98549876
may however result in accumulation of useless files.
98559877
</para>
9878+
9879+
<para>
9880+
This parameter can only be set in the <filename>postgresql.conf</filename>
9881+
file or on the server command line.
9882+
</para>
98569883
</listitem>
98579884
</varlistentry>
98589885

@@ -9921,6 +9948,9 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
99219948
<productname>PostgreSQL</productname>, and relevant error messages may
99229949
appear only in kernel logs.
99239950
</para>
9951+
<para>
9952+
This parameter can only be set at server start.
9953+
</para>
99249954
</listitem>
99259955
</varlistentry>
99269956

src/backend/utils/misc/postgresql.conf.sample

+1
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@
774774
# data?
775775
# (change requires restart)
776776
#recovery_init_sync_method = fsync # fsync, syncfs (Linux 5.8+)
777+
# (change requires restart)
777778

778779

779780
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)