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