Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9dc34b5

Browse files
committed
Mark postgresql.conf entries that require server restart; some minor
editing and reformatting.
1 parent 20a733d commit 9dc34b5

File tree

1 file changed

+54
-36
lines changed

1 file changed

+54
-36
lines changed

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

Lines changed: 54 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@
66
#
77
# name = value
88
#
9-
# (The '=' is optional.) White space may be used. Comments are introduced
10-
# with '#' anywhere on a line. The complete list of option names and
11-
# allowed values can be found in the PostgreSQL documentation. The
9+
# (The '=' is optional.) White space may be used. Comments are introduced
10+
# with '#' anywhere on a line. The complete list of option names and
11+
# allowed values can be found in the PostgreSQL documentation. The
1212
# commented-out settings shown in this file represent the default values.
1313
#
1414
# Please note that re-commenting a setting is NOT sufficient to revert it
15-
# to the default value, unless you restart the postmaster.
15+
# to the default value, unless you restart the server.
1616
#
17-
# Any option can also be given as a command line switch to the
18-
# postmaster, e.g. 'postmaster -c log_connections=on'. Some options
19-
# can be changed at run-time with the 'SET' SQL command.
17+
# Any option can also be given as a command line switch to the server,
18+
# e.g., 'postgres -c log_connections=on'. Some options can be changed at
19+
# run-time with the 'SET' SQL command.
2020
#
21-
# This file is read on postmaster startup and when the postmaster
22-
# receives a SIGHUP. If you edit the file on a running system, you have
23-
# to SIGHUP the postmaster for the changes to take effect, or use
24-
# "pg_ctl reload". Some settings, such as listen_addresses, require
25-
# a postmaster shutdown and restart to take effect.
21+
# This file is read on server startup and when the server receives a
22+
# SIGHUP. If you edit the file on a running system, you have to SIGHUP the
23+
# server for the changes to take effect, or use "pg_ctl reload". Some
24+
# settings, which are marked below, require a server shutdown and restart
25+
# to take effect.
2626

2727

2828
#---------------------------------------------------------------------------
@@ -33,11 +33,15 @@
3333
# switch or PGDATA environment variable, represented here as ConfigDir.
3434

3535
#data_directory = 'ConfigDir' # use data in another directory
36+
# (change requires restart)
3637
#hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file
37-
#ident_file = 'ConfigDir/pg_ident.conf' # IDENT configuration file
38+
# (change requires restart)
39+
#ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file
40+
# (change requires restart)
3841

39-
# If external_pid_file is not explicitly set, no extra pid file is written.
40-
#external_pid_file = '(none)' # write an extra pid file
42+
# If external_pid_file is not explicitly set, no extra PID file is written.
43+
#external_pid_file = '(none)' # write an extra PID file
44+
# (change requires restart)
4145

4246

4347
#---------------------------------------------------------------------------
@@ -49,29 +53,33 @@
4953
#listen_addresses = 'localhost' # what IP address(es) to listen on;
5054
# comma-separated list of addresses;
5155
# defaults to 'localhost', '*' = all
52-
#port = 5432
53-
#max_connections = 100
54-
# note: increasing max_connections costs ~400 bytes of shared memory per
56+
# (change requires restart)
57+
#port = 5432 # (change requires restart)
58+
#max_connections = 100 # (change requires restart)
59+
# Note: increasing max_connections costs ~400 bytes of shared memory per
5560
# connection slot, plus lock space (see max_locks_per_transaction). You
5661
# might also need to raise shared_buffers to support more connections.
57-
#superuser_reserved_connections = 2
58-
#unix_socket_directory = ''
59-
#unix_socket_group = ''
62+
#superuser_reserved_connections = 2 # (change requires restart)
63+
#unix_socket_directory = '' # (change requires restart)
64+
#unix_socket_group = '' # (change requires restart)
6065
#unix_socket_permissions = 0777 # octal
66+
# (change requires restart)
6167
#bonjour_name = '' # defaults to the computer name
68+
# (change requires restart)
6269

6370
# - Security & Authentication -
6471

6572
#authentication_timeout = 60 # 1-600, in seconds
66-
#ssl = off
73+
#ssl = off # (change requires restart)
6774
#password_encryption = on
6875
#db_user_namespace = off
6976

7077
# Kerberos
71-
#krb_server_keyfile = ''
72-
#krb_srvname = 'postgres'
78+
#krb_server_keyfile = '' # (change requires restart)
79+
#krb_srvname = 'postgres' # (change requires restart)
7380
#krb_server_hostname = '' # empty string matches any keytab entry
74-
#krb_caseins_users = off
81+
# (change requires restart)
82+
#krb_caseins_users = off # (change requires restart)
7583

7684
# - TCP Keepalives -
7785
# see 'man 7 tcp' for details
@@ -90,24 +98,29 @@
9098

9199
# - Memory -
92100

93-
#shared_buffers = 1000 # min 16 or max_connections*2, 8KB each
94-
#temp_buffers = 1000 # min 100, 8KB each
101+
#shared_buffers = 1000 # min 16 or max_connections*2, 8kB each
102+
# (change requires restart)
103+
#temp_buffers = 1000 # min 100, 8kB each
95104
#max_prepared_transactions = 5 # can be 0 or more
96-
# note: increasing max_prepared_transactions costs ~600 bytes of shared memory
105+
# (change requires restart)
106+
# Note: increasing max_prepared_transactions costs ~600 bytes of shared memory
97107
# per transaction slot, plus lock space (see max_locks_per_transaction).
98-
#work_mem = 1024 # min 64, size in KB
99-
#maintenance_work_mem = 16384 # min 1024, size in KB
100-
#max_stack_depth = 2048 # min 100, size in KB
108+
#work_mem = 1024 # min 64, size in kB
109+
#maintenance_work_mem = 16384 # min 1024, size in kB
110+
#max_stack_depth = 2048 # min 100, size in kB
101111

102112
# - Free Space Map -
103113

104114
#max_fsm_pages = 20000 # min max_fsm_relations*16, 6 bytes each
115+
# (change requires restart)
105116
#max_fsm_relations = 1000 # min 100, ~70 bytes each
117+
# (change requires restart)
106118

107119
# - Kernel Resource Usage -
108120

109121
#max_files_per_process = 1000 # min 25
110-
#preload_libraries = ''
122+
# (change requires restart)
123+
#preload_libraries = '' # (change requires restart)
111124

112125
# - Cost-Based Vacuum Delay -
113126

@@ -141,7 +154,8 @@
141154
# fsync_writethrough
142155
# open_sync
143156
#full_page_writes = on # recover from partial page writes
144-
#wal_buffers = 8 # min 4, 8KB each
157+
#wal_buffers = 8 # min 4, 8kB each
158+
# (change requires restart)
145159
#commit_delay = 0 # range 0-100000, in microseconds
146160
#commit_siblings = 5 # range 1-1000
147161

@@ -180,7 +194,7 @@
180194
#cpu_tuple_cost = 0.01 # same scale as above
181195
#cpu_index_tuple_cost = 0.005 # same scale as above
182196
#cpu_operator_cost = 0.0025 # same scale as above
183-
#effective_cache_size = 1000 # typically 8KB each
197+
#effective_cache_size = 1000 # typically 8kB each
184198

185199
# - Genetic Query Optimizer -
186200

@@ -213,6 +227,7 @@
213227
# This is used when logging to stderr:
214228
#redirect_stderr = off # Enable capturing of stderr into log
215229
# files
230+
# (change requires restart)
216231

217232
# These are only used if redirect_stderr is on:
218233
#log_directory = 'pg_log' # Directory where log files are written
@@ -285,6 +300,7 @@
285300

286301
#silent_mode = off # DO NOT USE without syslog or
287302
# redirect_stderr
303+
# (change requires restart)
288304

289305
# - What to Log -
290306

@@ -326,9 +342,10 @@
326342
#update_process_title = on
327343

328344
#stats_start_collector = on # needed for block or row stats
345+
# (change requires restart)
329346
#stats_block_level = off
330347
#stats_row_level = off
331-
#stats_reset_on_server_start = off
348+
#stats_reset_on_server_start = off # (change requires restart)
332349

333350

334351
# - Statistics Monitoring -
@@ -404,7 +421,8 @@
404421

405422
#deadlock_timeout = 1000 # in milliseconds
406423
#max_locks_per_transaction = 64 # min 10
407-
# note: each lock table slot uses ~270 bytes of shared memory, and there are
424+
# (change requires restart)
425+
# Note: each lock table slot uses ~270 bytes of shared memory, and there are
408426
# max_locks_per_transaction * (max_connections + max_prepared_transactions)
409427
# lock table slots.
410428

0 commit comments

Comments
 (0)