Revision 11670
Added by Aaron Marcuse-Kubitza over 11 years ago
postgresql.conf | ||
---|---|---|
38 | 38 |
# The default values of these variables are driven from the -D command-line |
39 | 39 |
# option or PGDATA environment variable, represented here as ConfigDir. |
40 | 40 |
|
41 |
data_directory = '/var/lib/postgresql/9.1/main' # use data in another directory
|
|
41 |
data_directory = '/var/lib/postgresql/9.3/main' # use data in another directory
|
|
42 | 42 |
# (change requires restart) |
43 |
hba_file = '/etc/postgresql/9.1/main/pg_hba.conf' # host-based authentication file
|
|
43 |
hba_file = '/etc/postgresql/9.3/main/pg_hba.conf' # host-based authentication file
|
|
44 | 44 |
# (change requires restart) |
45 |
ident_file = '/etc/postgresql/9.1/main/pg_ident.conf' # ident configuration file
|
|
45 |
ident_file = '/etc/postgresql/9.3/main/pg_ident.conf' # ident configuration file
|
|
46 | 46 |
# (change requires restart) |
47 | 47 |
|
48 | 48 |
# If external_pid_file is not explicitly set, no extra PID file is written. |
49 |
external_pid_file = '/var/run/postgresql/9.1-main.pid' # write an extra PID file
|
|
49 |
external_pid_file = '/var/run/postgresql/9.3-main.pid' # write an extra PID file
|
|
50 | 50 |
# (change requires restart) |
51 | 51 |
|
52 | 52 |
|
... | ... | |
56 | 56 |
|
57 | 57 |
# - Connection Settings - |
58 | 58 |
|
59 |
listen_addresses = '*' # what IP address(es) to listen on; |
|
59 |
listen_addresses = '*' # what IP address(es) to listen on; |
|
60 |
#listen_addresses = 'localhost' # what IP address(es) to listen on; |
|
60 | 61 |
# comma-separated list of addresses; |
61 |
# defaults to 'localhost', '*' = all
|
|
62 |
# defaults to 'localhost'; use '*' for all
|
|
62 | 63 |
# (change requires restart) |
63 | 64 |
port = 5432 # (change requires restart) |
64 | 65 |
max_connections = 100 # (change requires restart) |
65 |
# Note: Increasing max_connections costs ~400 bytes of shared memory per
|
|
66 |
# Note: Increasing max_connections costs ~400 bytes of shared memory per |
|
66 | 67 |
# connection slot, plus lock space (see max_locks_per_transaction). |
67 | 68 |
#superuser_reserved_connections = 3 # (change requires restart) |
68 |
unix_socket_directory = '/var/run/postgresql' # (change requires restart) |
|
69 |
unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories |
|
70 |
# (change requires restart) |
|
69 | 71 |
#unix_socket_group = '' # (change requires restart) |
70 | 72 |
#unix_socket_permissions = 0777 # begin with 0 to use octal notation |
71 | 73 |
# (change requires restart) |
74 |
#bonjour = off # advertise server via Bonjour |
|
75 |
# (change requires restart) |
|
72 | 76 |
#bonjour_name = '' # defaults to the computer name |
73 | 77 |
# (change requires restart) |
74 | 78 |
|
... | ... | |
76 | 80 |
|
77 | 81 |
#authentication_timeout = 1min # 1s-600s |
78 | 82 |
ssl = true # (change requires restart) |
79 |
#ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers
|
|
83 |
#ssl_ciphers = 'DEFAULT:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers
|
|
80 | 84 |
# (change requires restart) |
81 | 85 |
#ssl_renegotiation_limit = 512MB # amount of data between renegotiations |
86 |
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) |
|
82 | 90 |
#password_encryption = on |
83 | 91 |
#db_user_namespace = off |
84 | 92 |
|
... | ... | |
108 | 116 |
# 32-bit Linux (e.g. Ubuntu VM) may support less: |
109 | 117 |
# http://www.postgresql.org/message-id/27470.1323837026@sss.pgh.pa.us |
110 | 118 |
shared_buffers = 2700MB # min 128kB |
119 |
#shared_buffers = 128MB # min 128kB |
|
111 | 120 |
# (change requires restart) |
112 | 121 |
#temp_buffers = 8MB # min 800kB |
113 | 122 |
#max_prepared_transactions = 0 # zero disables the feature |
... | ... | |
122 | 131 |
#maintenance_work_mem = 16MB # min 1MB |
123 | 132 |
#max_stack_depth = 2MB # min 100kB |
124 | 133 |
|
134 |
# - Disk - |
|
135 |
|
|
136 |
#temp_file_limit = -1 # limits per-session temp file space |
|
137 |
# in kB, or -1 for no limit |
|
138 |
|
|
125 | 139 |
# - Kernel Resource Usage - |
126 | 140 |
|
127 | 141 |
#max_files_per_process = 1000 # min 25 |
... | ... | |
130 | 144 |
|
131 | 145 |
# - Cost-Based Vacuum Delay - |
132 | 146 |
|
133 |
#vacuum_cost_delay = 0ms # 0-100 milliseconds
|
|
147 |
#vacuum_cost_delay = 0 # 0-100 milliseconds
|
|
134 | 148 |
#vacuum_cost_page_hit = 1 # 0-10000 credits |
135 | 149 |
#vacuum_cost_page_miss = 10 # 0-10000 credits |
136 | 150 |
#vacuum_cost_page_dirty = 20 # 0-10000 credits |
... | ... | |
144 | 158 |
|
145 | 159 |
# - Asynchronous Behavior - |
146 | 160 |
|
147 |
#effective_io_concurrency = 1 # 1-1000. 0 disables prefetching
|
|
161 |
#effective_io_concurrency = 1 # 1-1000; 0 disables prefetching
|
|
148 | 162 |
|
149 | 163 |
|
150 | 164 |
#------------------------------------------------------------------------------ |
... | ... | |
153 | 167 |
|
154 | 168 |
# - Settings - |
155 | 169 |
|
170 |
#wal_level = minimal # minimal, archive, or hot_standby |
|
171 |
# (change requires restart) |
|
156 | 172 |
#fsync = on # turns forced synchronization on or off |
157 | 173 |
##### WARNING: Switching this off may cause data loss. |
158 | 174 |
# It is used to improve performance with frequent commits. Each datasource makes |
... | ... | |
162 | 178 |
# <http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server#synchronous_commit> |
163 | 179 |
##### |
164 | 180 |
synchronous_commit = off # immediate fsync at commit |
165 |
#wal_sync_method = fsync # the default is the first option |
|
181 |
#synchronous_commit = on # synchronization level; |
|
182 |
# off, local, remote_write, or on |
|
183 |
#wal_sync_method = fsync # the default is the first option |
|
166 | 184 |
# supported by the operating system: |
167 | 185 |
# open_datasync |
168 |
# fdatasync |
|
186 |
# fdatasync (default on Linux)
|
|
169 | 187 |
# fsync |
170 | 188 |
# fsync_writethrough |
171 | 189 |
# open_sync |
172 | 190 |
#full_page_writes = on # recover from partial page writes |
173 |
#wal_buffers = 64kB # min 32kB
|
|
191 |
#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
|
|
174 | 192 |
# (change requires restart) |
175 | 193 |
#wal_writer_delay = 200ms # 1-10000 milliseconds |
176 | 194 |
|
... | ... | |
191 | 209 |
#archive_mode = off # allows archiving to be done |
192 | 210 |
# (change requires restart) |
193 | 211 |
#archive_command = '' # command to use to archive a logfile segment |
212 |
# placeholders: %p = path of file to archive |
|
213 |
# %f = file name only |
|
214 |
# e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f' |
|
194 | 215 |
#archive_timeout = 0 # force a logfile segment switch after this |
195 | 216 |
# number of seconds; 0 disables |
196 | 217 |
|
197 | 218 |
|
198 | 219 |
#------------------------------------------------------------------------------ |
220 |
# REPLICATION |
|
221 |
#------------------------------------------------------------------------------ |
|
222 |
|
|
223 |
# - Sending Server(s) - |
|
224 |
|
|
225 |
# Set these on the master and on any standby that will send replication data. |
|
226 |
|
|
227 |
#max_wal_senders = 0 # max number of walsender processes |
|
228 |
# (change requires restart) |
|
229 |
#wal_keep_segments = 0 # in logfile segments, 16MB each; 0 disables |
|
230 |
#wal_sender_timeout = 60s # in milliseconds; 0 disables |
|
231 |
|
|
232 |
# - Master Server - |
|
233 |
|
|
234 |
# These settings are ignored on a standby server. |
|
235 |
|
|
236 |
#synchronous_standby_names = '' # standby servers that provide sync rep |
|
237 |
# comma-separated list of application_name |
|
238 |
# from standby(s); '*' = all |
|
239 |
#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed |
|
240 |
|
|
241 |
# - Standby Servers - |
|
242 |
|
|
243 |
# These settings are ignored on a master server. |
|
244 |
|
|
245 |
#hot_standby = off # "on" allows queries during recovery |
|
246 |
# (change requires restart) |
|
247 |
#max_standby_archive_delay = 30s # max delay before canceling queries |
|
248 |
# when reading WAL from archive; |
|
249 |
# -1 allows indefinite delay |
|
250 |
#max_standby_streaming_delay = 30s # max delay before canceling queries |
|
251 |
# when reading streaming WAL; |
|
252 |
# -1 allows indefinite delay |
|
253 |
#wal_receiver_status_interval = 10s # send replies at least this often |
|
254 |
# 0 disables |
|
255 |
#hot_standby_feedback = off # send info from standby to prevent |
|
256 |
# query conflicts |
|
257 |
#wal_receiver_timeout = 60s # time that receiver waits for |
|
258 |
# communication from master |
|
259 |
# in milliseconds; 0 disables |
|
260 |
|
|
261 |
|
|
262 |
#------------------------------------------------------------------------------ |
|
199 | 263 |
# QUERY TUNING |
200 | 264 |
#------------------------------------------------------------------------------ |
201 | 265 |
|
... | ... | |
205 | 269 |
#enable_hashagg = on |
206 | 270 |
#enable_hashjoin = on |
207 | 271 |
#enable_indexscan = on |
272 |
#enable_indexonlyscan = on |
|
273 |
#enable_material = on |
|
208 | 274 |
#enable_mergejoin = on |
209 | 275 |
#enable_nestloop = on |
210 | 276 |
#enable_seqscan = on |
... | ... | |
229 | 295 |
#geqo_pool_size = 0 # selects default based on effort |
230 | 296 |
#geqo_generations = 0 # selects default based on effort |
231 | 297 |
#geqo_selection_bias = 2.0 # range 1.5-2.0 |
298 |
#geqo_seed = 0.0 # range 0.0-1.0 |
|
232 | 299 |
|
233 | 300 |
# - Other Planner Options - |
234 | 301 |
|
... | ... | |
236 | 303 |
#constraint_exclusion = partition # on, off, or partition |
237 | 304 |
#cursor_tuple_fraction = 0.1 # range 0.0-1.0 |
238 | 305 |
#from_collapse_limit = 8 |
239 |
#join_collapse_limit = 8 # 1 disables collapsing of explicit
|
|
306 |
#join_collapse_limit = 8 # 1 disables collapsing of explicit |
|
240 | 307 |
# JOIN clauses |
241 | 308 |
|
242 | 309 |
|
... | ... | |
247 | 314 |
# - Where to Log - |
248 | 315 |
|
249 | 316 |
#log_destination = 'stderr' # Valid values are combinations of |
250 |
# stderr, csvlog, syslog and eventlog, |
|
317 |
# stderr, csvlog, syslog, and eventlog,
|
|
251 | 318 |
# depending on platform. csvlog |
252 | 319 |
# requires logging_collector to be on. |
253 | 320 |
|
... | ... | |
263 | 330 |
# can be absolute or relative to PGDATA |
264 | 331 |
#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern, |
265 | 332 |
# can include strftime() escapes |
266 |
#log_truncate_on_rotation = off # If on, an existing log file of the |
|
333 |
#log_file_mode = 0600 # creation mode for log files, |
|
334 |
# begin with 0 to use octal notation |
|
335 |
#log_truncate_on_rotation = off # If on, an existing log file with the |
|
267 | 336 |
# same name as the new log file will be |
268 | 337 |
# truncated rather than appended to. |
269 | 338 |
# But such truncation only occurs on |
... | ... | |
273 | 342 |
# in all cases. |
274 | 343 |
#log_rotation_age = 1d # Automatic rotation of logfiles will |
275 | 344 |
# happen after that time. 0 disables. |
276 |
#log_rotation_size = 10MB # Automatic rotation of logfiles will
|
|
345 |
#log_rotation_size = 10MB # Automatic rotation of logfiles will |
|
277 | 346 |
# happen after that much log output. |
278 | 347 |
# 0 disables. |
279 | 348 |
|
... | ... | |
281 | 350 |
#syslog_facility = 'LOCAL0' |
282 | 351 |
#syslog_ident = 'postgres' |
283 | 352 |
|
284 |
#silent_mode = off # Run server silently. |
|
285 |
# DO NOT USE without syslog or |
|
286 |
# logging_collector |
|
287 |
# (change requires restart) |
|
353 |
# This is only relevant when logging to eventlog (win32): |
|
354 |
#event_source = 'PostgreSQL' |
|
288 | 355 |
|
289 |
|
|
290 | 356 |
# - When to Log - |
291 | 357 |
|
292 | 358 |
#client_min_messages = notice # values in order of decreasing detail: |
... | ... | |
314 | 380 |
# fatal |
315 | 381 |
# panic |
316 | 382 |
|
317 |
#log_error_verbosity = default # terse, default, or verbose messages |
|
318 |
|
|
319 | 383 |
#log_min_error_statement = error # values in order of decreasing detail: |
320 | 384 |
# debug5 |
321 | 385 |
# debug4 |
... | ... | |
346 | 410 |
#log_connections = off |
347 | 411 |
#log_disconnections = off |
348 | 412 |
#log_duration = off |
413 |
#log_error_verbosity = default # terse, default, or verbose messages |
|
349 | 414 |
#log_hostname = off |
350 | 415 |
log_line_prefix = '%t ' # special values: |
416 |
# %a = application name |
|
351 | 417 |
# %u = user name |
352 | 418 |
# %d = database name |
353 | 419 |
# %r = remote host and port |
... | ... | |
356 | 422 |
# %t = timestamp without milliseconds |
357 | 423 |
# %m = timestamp with milliseconds |
358 | 424 |
# %i = command tag |
425 |
# %e = SQL state |
|
359 | 426 |
# %c = session ID |
360 | 427 |
# %l = session line number |
361 | 428 |
# %s = session start timestamp |
... | ... | |
370 | 437 |
#log_temp_files = -1 # log temporary files equal or larger |
371 | 438 |
# than the specified size in kilobytes; |
372 | 439 |
# -1 disables, 0 logs all temp files |
373 |
#log_timezone = unknown # actually, defaults to TZ environment |
|
374 |
# setting |
|
440 |
log_timezone = 'localtime' |
|
375 | 441 |
|
376 | 442 |
|
377 | 443 |
#------------------------------------------------------------------------------ |
... | ... | |
382 | 448 |
|
383 | 449 |
#track_activities = on |
384 | 450 |
#track_counts = on |
451 |
#track_io_timing = off |
|
385 | 452 |
#track_functions = none # none, pl, all |
386 |
#track_activity_query_size = 1024 |
|
453 |
#track_activity_query_size = 1024 # (change requires restart)
|
|
387 | 454 |
#update_process_title = on |
388 | 455 |
#stats_temp_directory = 'pg_stat_tmp' |
389 | 456 |
|
... | ... | |
400 | 467 |
# AUTOVACUUM PARAMETERS |
401 | 468 |
#------------------------------------------------------------------------------ |
402 | 469 |
|
403 |
#autovacuum = on # Enable autovacuum subprocess? 'on'
|
|
470 |
#autovacuum = on # Enable autovacuum subprocess? 'on' |
|
404 | 471 |
# requires track_counts to also be on. |
405 | 472 |
log_autovacuum_min_duration = 0 # -1 disables, 0 logs all actions and |
473 |
#log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and |
|
406 | 474 |
# their durations, > 0 logs only |
407 | 475 |
# actions running at least this number |
408 | 476 |
# of milliseconds. |
409 | 477 |
#autovacuum_max_workers = 3 # max number of autovacuum subprocesses |
478 |
# (change requires restart) |
|
410 | 479 |
#autovacuum_naptime = 1min # time between autovacuum runs |
411 | 480 |
#autovacuum_vacuum_threshold = 50 # min number of row updates before |
412 | 481 |
# vacuum |
413 |
#autovacuum_analyze_threshold = 50 # min number of row updates before
|
|
482 |
#autovacuum_analyze_threshold = 50 # min number of row updates before |
|
414 | 483 |
# analyze |
415 | 484 |
#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum |
416 | 485 |
#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze |
... | ... | |
437 | 506 |
#check_function_bodies = on |
438 | 507 |
#default_transaction_isolation = 'read committed' |
439 | 508 |
#default_transaction_read_only = off |
509 |
#default_transaction_deferrable = off |
|
440 | 510 |
#session_replication_role = 'origin' |
441 | 511 |
#statement_timeout = 0 # in milliseconds, 0 is disabled |
512 |
#lock_timeout = 0 # in milliseconds, 0 is disabled |
|
442 | 513 |
#vacuum_freeze_min_age = 50000000 |
443 | 514 |
#vacuum_freeze_table_age = 150000000 |
515 |
#bytea_output = 'hex' # hex, escape |
|
444 | 516 |
#xmlbinary = 'base64' |
445 | 517 |
#xmloption = 'content' |
446 | 518 |
|
... | ... | |
448 | 520 |
|
449 | 521 |
datestyle = 'iso, mdy' |
450 | 522 |
#intervalstyle = 'postgres' |
451 |
#timezone = unknown # actually, defaults to TZ environment |
|
452 |
# setting |
|
523 |
timezone = 'localtime' |
|
453 | 524 |
#timezone_abbreviations = 'Default' # Select the set of available time zone |
454 | 525 |
# abbreviations. Currently, there are |
455 | 526 |
# Default |
... | ... | |
457 | 528 |
# India |
458 | 529 |
# You can create your own file in |
459 | 530 |
# share/timezonesets/. |
460 |
#extra_float_digits = 0 # min -15, max 2
|
|
531 |
#extra_float_digits = 0 # min -15, max 3
|
|
461 | 532 |
#client_encoding = sql_ascii # actually, defaults to database |
462 | 533 |
# encoding |
463 | 534 |
|
... | ... | |
487 | 558 |
# Note: Each lock table slot uses ~270 bytes of shared memory, and there are |
488 | 559 |
# max_locks_per_transaction * (max_connections + max_prepared_transactions) |
489 | 560 |
# lock table slots. |
561 |
#max_pred_locks_per_transaction = 64 # min 10 |
|
562 |
# (change requires restart) |
|
490 | 563 |
|
491 | 564 |
|
492 | 565 |
#------------------------------------------------------------------------------ |
... | ... | |
495 | 568 |
|
496 | 569 |
# - Previous PostgreSQL Versions - |
497 | 570 |
|
498 |
#add_missing_from = off |
|
499 | 571 |
#array_nulls = on |
500 | 572 |
#backslash_quote = safe_encoding # on, off, or safe_encoding |
501 | 573 |
#default_with_oids = off |
502 | 574 |
#escape_string_warning = on |
503 |
#regex_flavor = advanced # advanced, extended, or basic |
|
575 |
#lo_compat_privileges = off |
|
576 |
#quote_all_identifiers = off |
|
504 | 577 |
#sql_inheritance = on |
505 |
#standard_conforming_strings = off
|
|
578 |
#standard_conforming_strings = on
|
|
506 | 579 |
#synchronize_seqscans = on |
507 | 580 |
|
508 | 581 |
# - Other Platforms and Clients - |
... | ... | |
511 | 584 |
|
512 | 585 |
|
513 | 586 |
#------------------------------------------------------------------------------ |
587 |
# ERROR HANDLING |
|
588 |
#------------------------------------------------------------------------------ |
|
589 |
|
|
590 |
#exit_on_error = off # terminate session on any error? |
|
591 |
#restart_after_crash = on # reinitialize after backend crash? |
|
592 |
|
|
593 |
|
|
594 |
#------------------------------------------------------------------------------ |
|
595 |
# CONFIG FILE INCLUDES |
|
596 |
#------------------------------------------------------------------------------ |
|
597 |
|
|
598 |
# These options allow settings to be loaded from files other than the |
|
599 |
# default postgresql.conf. |
|
600 |
|
|
601 |
#include_dir = 'conf.d' # include files ending in '.conf' from |
|
602 |
# directory 'conf.d' |
|
603 |
#include_if_exists = 'exists.conf' # include file only if it exists |
|
604 |
#include = 'special.conf' # include file |
|
605 |
|
|
606 |
|
|
607 |
#------------------------------------------------------------------------------ |
|
514 | 608 |
# CUSTOMIZED OPTIONS |
515 | 609 |
#------------------------------------------------------------------------------ |
516 | 610 |
|
517 |
#custom_variable_classes = '' # list of custom variable class names |
|
611 |
# Add settings for extensions here |
Also available in: Unified diff
schemas/*.conf: upgraded to PostgreSQL 9.3, which is needed for proper exception parsing in the auto-re-create-views functionality