1 |
1583
|
aaronmk
|
# -----------------------------
|
2 |
|
|
# PostgreSQL configuration file
|
3 |
|
|
# -----------------------------
|
4 |
|
|
#
|
5 |
|
|
# This file consists of lines of the form:
|
6 |
|
|
#
|
7 |
|
|
# name = value
|
8 |
|
|
#
|
9 |
|
|
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
|
10 |
|
|
# "#" anywhere on a line. The complete list of parameter names and allowed
|
11 |
|
|
# values can be found in the PostgreSQL documentation.
|
12 |
|
|
#
|
13 |
|
|
# The commented-out settings shown in this file represent the default values.
|
14 |
|
|
# Re-commenting a setting is NOT sufficient to revert it to the default value;
|
15 |
|
|
# you need to reload the server.
|
16 |
|
|
#
|
17 |
|
|
# This file is read on server startup and when the server receives a SIGHUP
|
18 |
|
|
# signal. If you edit the file on a running system, you have to SIGHUP the
|
19 |
|
|
# server for the changes to take effect, or use "pg_ctl reload". Some
|
20 |
|
|
# parameters, which are marked below, require a server shutdown and restart to
|
21 |
|
|
# take effect.
|
22 |
|
|
#
|
23 |
|
|
# Any parameter can also be given as a command-line option to the server, e.g.,
|
24 |
|
|
# "postgres -c log_connections=on". Some parameters can be changed at run time
|
25 |
|
|
# with the "SET" SQL command.
|
26 |
|
|
#
|
27 |
|
|
# Memory units: kB = kilobytes Time units: ms = milliseconds
|
28 |
|
|
# MB = megabytes s = seconds
|
29 |
|
|
# GB = gigabytes min = minutes
|
30 |
|
|
# h = hours
|
31 |
|
|
# d = days
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
#------------------------------------------------------------------------------
|
35 |
|
|
# FILE LOCATIONS
|
36 |
|
|
#------------------------------------------------------------------------------
|
37 |
|
|
|
38 |
|
|
# The default values of these variables are driven from the -D command-line
|
39 |
|
|
# option or PGDATA environment variable, represented here as ConfigDir.
|
40 |
|
|
|
41 |
11670
|
aaronmk
|
data_directory = '/var/lib/postgresql/9.3/main' # use data in another directory
|
42 |
1583
|
aaronmk
|
# (change requires restart)
|
43 |
11670
|
aaronmk
|
hba_file = '/etc/postgresql/9.3/main/pg_hba.conf' # host-based authentication file
|
44 |
1583
|
aaronmk
|
# (change requires restart)
|
45 |
11670
|
aaronmk
|
ident_file = '/etc/postgresql/9.3/main/pg_ident.conf' # ident configuration file
|
46 |
1583
|
aaronmk
|
# (change requires restart)
|
47 |
|
|
|
48 |
|
|
# If external_pid_file is not explicitly set, no extra PID file is written.
|
49 |
11670
|
aaronmk
|
external_pid_file = '/var/run/postgresql/9.3-main.pid' # write an extra PID file
|
50 |
1583
|
aaronmk
|
# (change requires restart)
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
#------------------------------------------------------------------------------
|
54 |
|
|
# CONNECTIONS AND AUTHENTICATION
|
55 |
|
|
#------------------------------------------------------------------------------
|
56 |
|
|
|
57 |
|
|
# - Connection Settings -
|
58 |
|
|
|
59 |
11670
|
aaronmk
|
listen_addresses = '*' # what IP address(es) to listen on;
|
60 |
|
|
#listen_addresses = 'localhost' # what IP address(es) to listen on;
|
61 |
1583
|
aaronmk
|
# comma-separated list of addresses;
|
62 |
11670
|
aaronmk
|
# defaults to 'localhost'; use '*' for all
|
63 |
1583
|
aaronmk
|
# (change requires restart)
|
64 |
|
|
port = 5432 # (change requires restart)
|
65 |
|
|
max_connections = 100 # (change requires restart)
|
66 |
11670
|
aaronmk
|
# Note: Increasing max_connections costs ~400 bytes of shared memory per
|
67 |
1583
|
aaronmk
|
# connection slot, plus lock space (see max_locks_per_transaction).
|
68 |
|
|
#superuser_reserved_connections = 3 # (change requires restart)
|
69 |
11670
|
aaronmk
|
unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
|
70 |
|
|
# (change requires restart)
|
71 |
1583
|
aaronmk
|
#unix_socket_group = '' # (change requires restart)
|
72 |
|
|
#unix_socket_permissions = 0777 # begin with 0 to use octal notation
|
73 |
|
|
# (change requires restart)
|
74 |
11670
|
aaronmk
|
#bonjour = off # advertise server via Bonjour
|
75 |
|
|
# (change requires restart)
|
76 |
1583
|
aaronmk
|
#bonjour_name = '' # defaults to the computer name
|
77 |
|
|
# (change requires restart)
|
78 |
|
|
|
79 |
|
|
# - Security and Authentication -
|
80 |
|
|
|
81 |
|
|
#authentication_timeout = 1min # 1s-600s
|
82 |
|
|
ssl = true # (change requires restart)
|
83 |
11670
|
aaronmk
|
#ssl_ciphers = 'DEFAULT:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers
|
84 |
1583
|
aaronmk
|
# (change requires restart)
|
85 |
|
|
#ssl_renegotiation_limit = 512MB # amount of data between renegotiations
|
86 |
11670
|
aaronmk
|
ssl_cert_file = '/etc/ssl/certs/ssl-cert-snakeoil.pem' # (change requires restart)
|
87 |
|
|
ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key' # (change requires restart)
|
88 |
|
|
#ssl_ca_file = '' # (change requires restart)
|
89 |
|
|
#ssl_crl_file = '' # (change requires restart)
|
90 |
1583
|
aaronmk
|
#password_encryption = on
|
91 |
|
|
#db_user_namespace = off
|
92 |
|
|
|
93 |
|
|
# Kerberos and GSSAPI
|
94 |
|
|
#krb_server_keyfile = ''
|
95 |
|
|
#krb_srvname = 'postgres' # (Kerberos only)
|
96 |
|
|
#krb_caseins_users = off
|
97 |
|
|
|
98 |
|
|
# - TCP Keepalives -
|
99 |
|
|
# see "man 7 tcp" for details
|
100 |
|
|
|
101 |
|
|
#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
|
102 |
|
|
# 0 selects the system default
|
103 |
|
|
#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
|
104 |
|
|
# 0 selects the system default
|
105 |
|
|
#tcp_keepalives_count = 0 # TCP_KEEPCNT;
|
106 |
|
|
# 0 selects the system default
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
#------------------------------------------------------------------------------
|
110 |
|
|
# RESOURCE USAGE (except WAL)
|
111 |
|
|
#------------------------------------------------------------------------------
|
112 |
|
|
|
113 |
|
|
# - Memory -
|
114 |
|
|
|
115 |
6502
|
aaronmk
|
# Must be less than total memory and less than ~95% of SHMMAX
|
116 |
8609
|
aaronmk
|
# 32-bit Linux (e.g. Ubuntu VM) may support less:
|
117 |
|
|
# http://www.postgresql.org/message-id/27470.1323837026@sss.pgh.pa.us
|
118 |
8611
|
aaronmk
|
shared_buffers = 2700MB # min 128kB
|
119 |
11670
|
aaronmk
|
#shared_buffers = 128MB # min 128kB
|
120 |
1583
|
aaronmk
|
# (change requires restart)
|
121 |
|
|
#temp_buffers = 8MB # min 800kB
|
122 |
|
|
#max_prepared_transactions = 0 # zero disables the feature
|
123 |
|
|
# (change requires restart)
|
124 |
|
|
# Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory
|
125 |
|
|
# per transaction slot, plus lock space (see max_locks_per_transaction).
|
126 |
|
|
# It is not advisable to set max_prepared_transactions nonzero unless you
|
127 |
|
|
# actively intend to use prepared transactions.
|
128 |
11797
|
aaronmk
|
# this is *multiplied* by max_connections
|
129 |
|
|
# i.e. 256 MB * 100 = *26 GB*, which approaches total memory (32 GB)
|
130 |
1654
|
aaronmk
|
work_mem = 256MB # min 64kB
|
131 |
1583
|
aaronmk
|
#work_mem = 1MB # min 64kB
|
132 |
1654
|
aaronmk
|
maintenance_work_mem = 256MB # min 1MB
|
133 |
1583
|
aaronmk
|
#maintenance_work_mem = 16MB # min 1MB
|
134 |
|
|
#max_stack_depth = 2MB # min 100kB
|
135 |
|
|
|
136 |
11670
|
aaronmk
|
# - Disk -
|
137 |
|
|
|
138 |
|
|
#temp_file_limit = -1 # limits per-session temp file space
|
139 |
|
|
# in kB, or -1 for no limit
|
140 |
|
|
|
141 |
1583
|
aaronmk
|
# - Kernel Resource Usage -
|
142 |
|
|
|
143 |
|
|
#max_files_per_process = 1000 # min 25
|
144 |
|
|
# (change requires restart)
|
145 |
|
|
#shared_preload_libraries = '' # (change requires restart)
|
146 |
|
|
|
147 |
|
|
# - Cost-Based Vacuum Delay -
|
148 |
|
|
|
149 |
11670
|
aaronmk
|
#vacuum_cost_delay = 0 # 0-100 milliseconds
|
150 |
1583
|
aaronmk
|
#vacuum_cost_page_hit = 1 # 0-10000 credits
|
151 |
|
|
#vacuum_cost_page_miss = 10 # 0-10000 credits
|
152 |
|
|
#vacuum_cost_page_dirty = 20 # 0-10000 credits
|
153 |
|
|
#vacuum_cost_limit = 200 # 1-10000 credits
|
154 |
|
|
|
155 |
|
|
# - Background Writer -
|
156 |
|
|
|
157 |
|
|
#bgwriter_delay = 200ms # 10-10000ms between rounds
|
158 |
|
|
#bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round
|
159 |
|
|
#bgwriter_lru_multiplier = 2.0 # 0-10.0 multipler on buffers scanned/round
|
160 |
|
|
|
161 |
|
|
# - Asynchronous Behavior -
|
162 |
|
|
|
163 |
11670
|
aaronmk
|
#effective_io_concurrency = 1 # 1-1000; 0 disables prefetching
|
164 |
1583
|
aaronmk
|
|
165 |
|
|
|
166 |
|
|
#------------------------------------------------------------------------------
|
167 |
|
|
# WRITE AHEAD LOG
|
168 |
|
|
#------------------------------------------------------------------------------
|
169 |
|
|
|
170 |
|
|
# - Settings -
|
171 |
|
|
|
172 |
11670
|
aaronmk
|
#wal_level = minimal # minimal, archive, or hot_standby
|
173 |
|
|
# (change requires restart)
|
174 |
1583
|
aaronmk
|
#fsync = on # turns forced synchronization on or off
|
175 |
1654
|
aaronmk
|
##### WARNING: Switching this off may cause data loss.
|
176 |
|
|
# It is used to improve performance with frequent commits. Each datasource makes
|
177 |
|
|
# ~10 commits/sec (which will hopefully increase after optimization), and there
|
178 |
|
|
# can be 10+ datasources running simultaneously, so the 100 commit/sec limit may
|
179 |
|
|
# be exceeded. See synchronous_commit at
|
180 |
|
|
# <http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server#synchronous_commit>
|
181 |
|
|
#####
|
182 |
|
|
synchronous_commit = off # immediate fsync at commit
|
183 |
11670
|
aaronmk
|
#synchronous_commit = on # synchronization level;
|
184 |
|
|
# off, local, remote_write, or on
|
185 |
|
|
#wal_sync_method = fsync # the default is the first option
|
186 |
1583
|
aaronmk
|
# supported by the operating system:
|
187 |
|
|
# open_datasync
|
188 |
11670
|
aaronmk
|
# fdatasync (default on Linux)
|
189 |
1583
|
aaronmk
|
# fsync
|
190 |
|
|
# fsync_writethrough
|
191 |
|
|
# open_sync
|
192 |
|
|
#full_page_writes = on # recover from partial page writes
|
193 |
11670
|
aaronmk
|
#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
|
194 |
1583
|
aaronmk
|
# (change requires restart)
|
195 |
|
|
#wal_writer_delay = 200ms # 1-10000 milliseconds
|
196 |
|
|
|
197 |
|
|
#commit_delay = 0 # range 0-100000, in microseconds
|
198 |
|
|
#commit_siblings = 5 # range 1-1000
|
199 |
|
|
|
200 |
|
|
# - Checkpoints -
|
201 |
|
|
|
202 |
1721
|
aaronmk
|
checkpoint_segments = 32 # in logfile segments, min 1, 16MB each
|
203 |
1583
|
aaronmk
|
#checkpoint_segments = 3 # in logfile segments, min 1, 16MB each
|
204 |
|
|
#checkpoint_timeout = 5min # range 30s-1h
|
205 |
1721
|
aaronmk
|
checkpoint_completion_target = 0.9 # checkpoint target duration, 0.0 - 1.0
|
206 |
1583
|
aaronmk
|
#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
|
207 |
|
|
#checkpoint_warning = 30s # 0 disables
|
208 |
|
|
|
209 |
|
|
# - Archiving -
|
210 |
|
|
|
211 |
|
|
#archive_mode = off # allows archiving to be done
|
212 |
|
|
# (change requires restart)
|
213 |
|
|
#archive_command = '' # command to use to archive a logfile segment
|
214 |
11670
|
aaronmk
|
# placeholders: %p = path of file to archive
|
215 |
|
|
# %f = file name only
|
216 |
|
|
# e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
|
217 |
1583
|
aaronmk
|
#archive_timeout = 0 # force a logfile segment switch after this
|
218 |
|
|
# number of seconds; 0 disables
|
219 |
|
|
|
220 |
|
|
|
221 |
|
|
#------------------------------------------------------------------------------
|
222 |
11670
|
aaronmk
|
# REPLICATION
|
223 |
|
|
#------------------------------------------------------------------------------
|
224 |
|
|
|
225 |
|
|
# - Sending Server(s) -
|
226 |
|
|
|
227 |
|
|
# Set these on the master and on any standby that will send replication data.
|
228 |
|
|
|
229 |
|
|
#max_wal_senders = 0 # max number of walsender processes
|
230 |
|
|
# (change requires restart)
|
231 |
|
|
#wal_keep_segments = 0 # in logfile segments, 16MB each; 0 disables
|
232 |
|
|
#wal_sender_timeout = 60s # in milliseconds; 0 disables
|
233 |
|
|
|
234 |
|
|
# - Master Server -
|
235 |
|
|
|
236 |
|
|
# These settings are ignored on a standby server.
|
237 |
|
|
|
238 |
|
|
#synchronous_standby_names = '' # standby servers that provide sync rep
|
239 |
|
|
# comma-separated list of application_name
|
240 |
|
|
# from standby(s); '*' = all
|
241 |
|
|
#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
|
242 |
|
|
|
243 |
|
|
# - Standby Servers -
|
244 |
|
|
|
245 |
|
|
# These settings are ignored on a master server.
|
246 |
|
|
|
247 |
|
|
#hot_standby = off # "on" allows queries during recovery
|
248 |
|
|
# (change requires restart)
|
249 |
|
|
#max_standby_archive_delay = 30s # max delay before canceling queries
|
250 |
|
|
# when reading WAL from archive;
|
251 |
|
|
# -1 allows indefinite delay
|
252 |
|
|
#max_standby_streaming_delay = 30s # max delay before canceling queries
|
253 |
|
|
# when reading streaming WAL;
|
254 |
|
|
# -1 allows indefinite delay
|
255 |
|
|
#wal_receiver_status_interval = 10s # send replies at least this often
|
256 |
|
|
# 0 disables
|
257 |
|
|
#hot_standby_feedback = off # send info from standby to prevent
|
258 |
|
|
# query conflicts
|
259 |
|
|
#wal_receiver_timeout = 60s # time that receiver waits for
|
260 |
|
|
# communication from master
|
261 |
|
|
# in milliseconds; 0 disables
|
262 |
|
|
|
263 |
|
|
|
264 |
|
|
#------------------------------------------------------------------------------
|
265 |
1583
|
aaronmk
|
# QUERY TUNING
|
266 |
|
|
#------------------------------------------------------------------------------
|
267 |
|
|
|
268 |
|
|
# - Planner Method Configuration -
|
269 |
|
|
|
270 |
|
|
#enable_bitmapscan = on
|
271 |
|
|
#enable_hashagg = on
|
272 |
|
|
#enable_hashjoin = on
|
273 |
|
|
#enable_indexscan = on
|
274 |
11670
|
aaronmk
|
#enable_indexonlyscan = on
|
275 |
|
|
#enable_material = on
|
276 |
1583
|
aaronmk
|
#enable_mergejoin = on
|
277 |
|
|
#enable_nestloop = on
|
278 |
|
|
#enable_seqscan = on
|
279 |
|
|
#enable_sort = on
|
280 |
|
|
#enable_tidscan = on
|
281 |
|
|
|
282 |
|
|
# - Planner Cost Constants -
|
283 |
|
|
|
284 |
|
|
#seq_page_cost = 1.0 # measured on an arbitrary scale
|
285 |
|
|
#random_page_cost = 4.0 # same scale as above
|
286 |
|
|
#cpu_tuple_cost = 0.01 # same scale as above
|
287 |
|
|
#cpu_index_tuple_cost = 0.005 # same scale as above
|
288 |
|
|
#cpu_operator_cost = 0.0025 # same scale as above
|
289 |
1654
|
aaronmk
|
effective_cache_size = 12GB
|
290 |
1583
|
aaronmk
|
#effective_cache_size = 128MB
|
291 |
|
|
|
292 |
|
|
# - Genetic Query Optimizer -
|
293 |
|
|
|
294 |
|
|
#geqo = on
|
295 |
|
|
#geqo_threshold = 12
|
296 |
|
|
#geqo_effort = 5 # range 1-10
|
297 |
|
|
#geqo_pool_size = 0 # selects default based on effort
|
298 |
|
|
#geqo_generations = 0 # selects default based on effort
|
299 |
|
|
#geqo_selection_bias = 2.0 # range 1.5-2.0
|
300 |
11670
|
aaronmk
|
#geqo_seed = 0.0 # range 0.0-1.0
|
301 |
1583
|
aaronmk
|
|
302 |
|
|
# - Other Planner Options -
|
303 |
|
|
|
304 |
|
|
#default_statistics_target = 100 # range 1-10000
|
305 |
|
|
#constraint_exclusion = partition # on, off, or partition
|
306 |
|
|
#cursor_tuple_fraction = 0.1 # range 0.0-1.0
|
307 |
|
|
#from_collapse_limit = 8
|
308 |
11670
|
aaronmk
|
#join_collapse_limit = 8 # 1 disables collapsing of explicit
|
309 |
1583
|
aaronmk
|
# JOIN clauses
|
310 |
|
|
|
311 |
|
|
|
312 |
|
|
#------------------------------------------------------------------------------
|
313 |
|
|
# ERROR REPORTING AND LOGGING
|
314 |
|
|
#------------------------------------------------------------------------------
|
315 |
|
|
|
316 |
|
|
# - Where to Log -
|
317 |
|
|
|
318 |
|
|
#log_destination = 'stderr' # Valid values are combinations of
|
319 |
11670
|
aaronmk
|
# stderr, csvlog, syslog, and eventlog,
|
320 |
1583
|
aaronmk
|
# depending on platform. csvlog
|
321 |
|
|
# requires logging_collector to be on.
|
322 |
|
|
|
323 |
|
|
# This is used when logging to stderr:
|
324 |
6298
|
aaronmk
|
logging_collector = on
|
325 |
1583
|
aaronmk
|
#logging_collector = off # Enable capturing of stderr and csvlog
|
326 |
|
|
# into log files. Required to be on for
|
327 |
|
|
# csvlogs.
|
328 |
|
|
# (change requires restart)
|
329 |
|
|
|
330 |
|
|
# These are only used if logging_collector is on:
|
331 |
|
|
#log_directory = 'pg_log' # directory where log files are written,
|
332 |
|
|
# can be absolute or relative to PGDATA
|
333 |
|
|
#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
|
334 |
|
|
# can include strftime() escapes
|
335 |
11670
|
aaronmk
|
#log_file_mode = 0600 # creation mode for log files,
|
336 |
|
|
# begin with 0 to use octal notation
|
337 |
|
|
#log_truncate_on_rotation = off # If on, an existing log file with the
|
338 |
1583
|
aaronmk
|
# same name as the new log file will be
|
339 |
|
|
# truncated rather than appended to.
|
340 |
|
|
# But such truncation only occurs on
|
341 |
|
|
# time-driven rotation, not on restarts
|
342 |
|
|
# or size-driven rotation. Default is
|
343 |
|
|
# off, meaning append to existing files
|
344 |
|
|
# in all cases.
|
345 |
|
|
#log_rotation_age = 1d # Automatic rotation of logfiles will
|
346 |
|
|
# happen after that time. 0 disables.
|
347 |
11670
|
aaronmk
|
#log_rotation_size = 10MB # Automatic rotation of logfiles will
|
348 |
1583
|
aaronmk
|
# happen after that much log output.
|
349 |
|
|
# 0 disables.
|
350 |
|
|
|
351 |
|
|
# These are relevant when logging to syslog:
|
352 |
|
|
#syslog_facility = 'LOCAL0'
|
353 |
|
|
#syslog_ident = 'postgres'
|
354 |
|
|
|
355 |
11670
|
aaronmk
|
# This is only relevant when logging to eventlog (win32):
|
356 |
|
|
#event_source = 'PostgreSQL'
|
357 |
1583
|
aaronmk
|
|
358 |
|
|
# - When to Log -
|
359 |
|
|
|
360 |
|
|
#client_min_messages = notice # values in order of decreasing detail:
|
361 |
|
|
# debug5
|
362 |
|
|
# debug4
|
363 |
|
|
# debug3
|
364 |
|
|
# debug2
|
365 |
|
|
# debug1
|
366 |
|
|
# log
|
367 |
|
|
# notice
|
368 |
|
|
# warning
|
369 |
|
|
# error
|
370 |
|
|
|
371 |
|
|
#log_min_messages = warning # values in order of decreasing detail:
|
372 |
|
|
# debug5
|
373 |
|
|
# debug4
|
374 |
|
|
# debug3
|
375 |
|
|
# debug2
|
376 |
|
|
# debug1
|
377 |
|
|
# info
|
378 |
|
|
# notice
|
379 |
|
|
# warning
|
380 |
|
|
# error
|
381 |
|
|
# log
|
382 |
|
|
# fatal
|
383 |
|
|
# panic
|
384 |
|
|
|
385 |
|
|
#log_min_error_statement = error # values in order of decreasing detail:
|
386 |
|
|
# debug5
|
387 |
|
|
# debug4
|
388 |
|
|
# debug3
|
389 |
|
|
# debug2
|
390 |
|
|
# debug1
|
391 |
|
|
# info
|
392 |
|
|
# notice
|
393 |
|
|
# warning
|
394 |
|
|
# error
|
395 |
|
|
# log
|
396 |
|
|
# fatal
|
397 |
|
|
# panic (effectively off)
|
398 |
|
|
|
399 |
|
|
#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
|
400 |
|
|
# and their durations, > 0 logs only
|
401 |
|
|
# statements running at least this number
|
402 |
|
|
# of milliseconds
|
403 |
|
|
|
404 |
|
|
|
405 |
|
|
# - What to Log -
|
406 |
|
|
|
407 |
|
|
#debug_print_parse = off
|
408 |
|
|
#debug_print_rewritten = off
|
409 |
|
|
#debug_print_plan = off
|
410 |
|
|
#debug_pretty_print = on
|
411 |
|
|
#log_checkpoints = off
|
412 |
|
|
#log_connections = off
|
413 |
|
|
#log_disconnections = off
|
414 |
|
|
#log_duration = off
|
415 |
11670
|
aaronmk
|
#log_error_verbosity = default # terse, default, or verbose messages
|
416 |
1583
|
aaronmk
|
#log_hostname = off
|
417 |
|
|
log_line_prefix = '%t ' # special values:
|
418 |
11670
|
aaronmk
|
# %a = application name
|
419 |
1583
|
aaronmk
|
# %u = user name
|
420 |
|
|
# %d = database name
|
421 |
|
|
# %r = remote host and port
|
422 |
|
|
# %h = remote host
|
423 |
|
|
# %p = process ID
|
424 |
|
|
# %t = timestamp without milliseconds
|
425 |
|
|
# %m = timestamp with milliseconds
|
426 |
|
|
# %i = command tag
|
427 |
11670
|
aaronmk
|
# %e = SQL state
|
428 |
1583
|
aaronmk
|
# %c = session ID
|
429 |
|
|
# %l = session line number
|
430 |
|
|
# %s = session start timestamp
|
431 |
|
|
# %v = virtual transaction ID
|
432 |
|
|
# %x = transaction ID (0 if none)
|
433 |
|
|
# %q = stop here in non-session
|
434 |
|
|
# processes
|
435 |
|
|
# %% = '%'
|
436 |
|
|
# e.g. '<%u%%%d> '
|
437 |
|
|
#log_lock_waits = off # log lock waits >= deadlock_timeout
|
438 |
|
|
#log_statement = 'none' # none, ddl, mod, all
|
439 |
|
|
#log_temp_files = -1 # log temporary files equal or larger
|
440 |
|
|
# than the specified size in kilobytes;
|
441 |
|
|
# -1 disables, 0 logs all temp files
|
442 |
11670
|
aaronmk
|
log_timezone = 'localtime'
|
443 |
1583
|
aaronmk
|
|
444 |
|
|
|
445 |
|
|
#------------------------------------------------------------------------------
|
446 |
|
|
# RUNTIME STATISTICS
|
447 |
|
|
#------------------------------------------------------------------------------
|
448 |
|
|
|
449 |
|
|
# - Query/Index Statistics Collector -
|
450 |
|
|
|
451 |
|
|
#track_activities = on
|
452 |
|
|
#track_counts = on
|
453 |
11670
|
aaronmk
|
#track_io_timing = off
|
454 |
1583
|
aaronmk
|
#track_functions = none # none, pl, all
|
455 |
11670
|
aaronmk
|
#track_activity_query_size = 1024 # (change requires restart)
|
456 |
1583
|
aaronmk
|
#update_process_title = on
|
457 |
|
|
#stats_temp_directory = 'pg_stat_tmp'
|
458 |
|
|
|
459 |
|
|
|
460 |
|
|
# - Statistics Monitoring -
|
461 |
|
|
|
462 |
|
|
#log_parser_stats = off
|
463 |
|
|
#log_planner_stats = off
|
464 |
|
|
#log_executor_stats = off
|
465 |
|
|
#log_statement_stats = off
|
466 |
|
|
|
467 |
|
|
|
468 |
|
|
#------------------------------------------------------------------------------
|
469 |
|
|
# AUTOVACUUM PARAMETERS
|
470 |
|
|
#------------------------------------------------------------------------------
|
471 |
|
|
|
472 |
11670
|
aaronmk
|
#autovacuum = on # Enable autovacuum subprocess? 'on'
|
473 |
1583
|
aaronmk
|
# requires track_counts to also be on.
|
474 |
10830
|
aaronmk
|
log_autovacuum_min_duration = 0 # -1 disables, 0 logs all actions and
|
475 |
11670
|
aaronmk
|
#log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
|
476 |
1583
|
aaronmk
|
# their durations, > 0 logs only
|
477 |
|
|
# actions running at least this number
|
478 |
|
|
# of milliseconds.
|
479 |
|
|
#autovacuum_max_workers = 3 # max number of autovacuum subprocesses
|
480 |
11670
|
aaronmk
|
# (change requires restart)
|
481 |
1583
|
aaronmk
|
#autovacuum_naptime = 1min # time between autovacuum runs
|
482 |
|
|
#autovacuum_vacuum_threshold = 50 # min number of row updates before
|
483 |
|
|
# vacuum
|
484 |
11670
|
aaronmk
|
#autovacuum_analyze_threshold = 50 # min number of row updates before
|
485 |
1583
|
aaronmk
|
# analyze
|
486 |
|
|
#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
|
487 |
|
|
#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
|
488 |
|
|
#autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
|
489 |
|
|
# (change requires restart)
|
490 |
|
|
#autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for
|
491 |
|
|
# autovacuum, in milliseconds;
|
492 |
|
|
# -1 means use vacuum_cost_delay
|
493 |
|
|
#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
|
494 |
|
|
# autovacuum, -1 means use
|
495 |
|
|
# vacuum_cost_limit
|
496 |
|
|
|
497 |
|
|
|
498 |
|
|
#------------------------------------------------------------------------------
|
499 |
|
|
# CLIENT CONNECTION DEFAULTS
|
500 |
|
|
#------------------------------------------------------------------------------
|
501 |
|
|
|
502 |
|
|
# - Statement Behavior -
|
503 |
|
|
|
504 |
|
|
#search_path = '"$user",public' # schema names
|
505 |
|
|
#default_tablespace = '' # a tablespace name, '' uses the default
|
506 |
|
|
#temp_tablespaces = '' # a list of tablespace names, '' uses
|
507 |
|
|
# only default tablespace
|
508 |
|
|
#check_function_bodies = on
|
509 |
|
|
#default_transaction_isolation = 'read committed'
|
510 |
|
|
#default_transaction_read_only = off
|
511 |
11670
|
aaronmk
|
#default_transaction_deferrable = off
|
512 |
1583
|
aaronmk
|
#session_replication_role = 'origin'
|
513 |
|
|
#statement_timeout = 0 # in milliseconds, 0 is disabled
|
514 |
11670
|
aaronmk
|
#lock_timeout = 0 # in milliseconds, 0 is disabled
|
515 |
1583
|
aaronmk
|
#vacuum_freeze_min_age = 50000000
|
516 |
|
|
#vacuum_freeze_table_age = 150000000
|
517 |
11670
|
aaronmk
|
#bytea_output = 'hex' # hex, escape
|
518 |
1583
|
aaronmk
|
#xmlbinary = 'base64'
|
519 |
|
|
#xmloption = 'content'
|
520 |
|
|
|
521 |
|
|
# - Locale and Formatting -
|
522 |
|
|
|
523 |
|
|
datestyle = 'iso, mdy'
|
524 |
|
|
#intervalstyle = 'postgres'
|
525 |
11670
|
aaronmk
|
timezone = 'localtime'
|
526 |
1583
|
aaronmk
|
#timezone_abbreviations = 'Default' # Select the set of available time zone
|
527 |
|
|
# abbreviations. Currently, there are
|
528 |
|
|
# Default
|
529 |
|
|
# Australia
|
530 |
|
|
# India
|
531 |
|
|
# You can create your own file in
|
532 |
|
|
# share/timezonesets/.
|
533 |
11670
|
aaronmk
|
#extra_float_digits = 0 # min -15, max 3
|
534 |
1583
|
aaronmk
|
#client_encoding = sql_ascii # actually, defaults to database
|
535 |
|
|
# encoding
|
536 |
|
|
|
537 |
|
|
# These settings are initialized by initdb, but they can be changed.
|
538 |
|
|
lc_messages = 'en_US.UTF-8' # locale for system error message
|
539 |
|
|
# strings
|
540 |
|
|
lc_monetary = 'en_US.UTF-8' # locale for monetary formatting
|
541 |
|
|
lc_numeric = 'en_US.UTF-8' # locale for number formatting
|
542 |
|
|
lc_time = 'en_US.UTF-8' # locale for time formatting
|
543 |
|
|
|
544 |
|
|
# default configuration for text search
|
545 |
|
|
default_text_search_config = 'pg_catalog.english'
|
546 |
|
|
|
547 |
|
|
# - Other Defaults -
|
548 |
|
|
|
549 |
|
|
#dynamic_library_path = '$libdir'
|
550 |
|
|
#local_preload_libraries = ''
|
551 |
|
|
|
552 |
|
|
|
553 |
|
|
#------------------------------------------------------------------------------
|
554 |
|
|
# LOCK MANAGEMENT
|
555 |
|
|
#------------------------------------------------------------------------------
|
556 |
|
|
|
557 |
|
|
#deadlock_timeout = 1s
|
558 |
|
|
#max_locks_per_transaction = 64 # min 10
|
559 |
|
|
# (change requires restart)
|
560 |
|
|
# Note: Each lock table slot uses ~270 bytes of shared memory, and there are
|
561 |
|
|
# max_locks_per_transaction * (max_connections + max_prepared_transactions)
|
562 |
|
|
# lock table slots.
|
563 |
11670
|
aaronmk
|
#max_pred_locks_per_transaction = 64 # min 10
|
564 |
|
|
# (change requires restart)
|
565 |
1583
|
aaronmk
|
|
566 |
|
|
|
567 |
|
|
#------------------------------------------------------------------------------
|
568 |
|
|
# VERSION/PLATFORM COMPATIBILITY
|
569 |
|
|
#------------------------------------------------------------------------------
|
570 |
|
|
|
571 |
|
|
# - Previous PostgreSQL Versions -
|
572 |
|
|
|
573 |
|
|
#array_nulls = on
|
574 |
|
|
#backslash_quote = safe_encoding # on, off, or safe_encoding
|
575 |
|
|
#default_with_oids = off
|
576 |
|
|
#escape_string_warning = on
|
577 |
11670
|
aaronmk
|
#lo_compat_privileges = off
|
578 |
|
|
#quote_all_identifiers = off
|
579 |
1583
|
aaronmk
|
#sql_inheritance = on
|
580 |
11670
|
aaronmk
|
#standard_conforming_strings = on
|
581 |
1583
|
aaronmk
|
#synchronize_seqscans = on
|
582 |
|
|
|
583 |
|
|
# - Other Platforms and Clients -
|
584 |
|
|
|
585 |
|
|
#transform_null_equals = off
|
586 |
|
|
|
587 |
|
|
|
588 |
|
|
#------------------------------------------------------------------------------
|
589 |
11670
|
aaronmk
|
# ERROR HANDLING
|
590 |
|
|
#------------------------------------------------------------------------------
|
591 |
|
|
|
592 |
|
|
#exit_on_error = off # terminate session on any error?
|
593 |
|
|
#restart_after_crash = on # reinitialize after backend crash?
|
594 |
|
|
|
595 |
|
|
|
596 |
|
|
#------------------------------------------------------------------------------
|
597 |
|
|
# CONFIG FILE INCLUDES
|
598 |
|
|
#------------------------------------------------------------------------------
|
599 |
|
|
|
600 |
|
|
# These options allow settings to be loaded from files other than the
|
601 |
|
|
# default postgresql.conf.
|
602 |
|
|
|
603 |
|
|
#include_dir = 'conf.d' # include files ending in '.conf' from
|
604 |
|
|
# directory 'conf.d'
|
605 |
|
|
#include_if_exists = 'exists.conf' # include file only if it exists
|
606 |
|
|
#include = 'special.conf' # include file
|
607 |
|
|
|
608 |
|
|
|
609 |
|
|
#------------------------------------------------------------------------------
|
610 |
1583
|
aaronmk
|
# CUSTOMIZED OPTIONS
|
611 |
|
|
#------------------------------------------------------------------------------
|
612 |
|
|
|
613 |
11670
|
aaronmk
|
# Add settings for extensions here
|