1 # -----------------------------
2 # PostgreSQL configuration file
3 # -----------------------------
5 # This file consists of lines of the form:
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.
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.
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
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.
27 # Memory units: kB = kilobytes Time units: ms = milliseconds
28 # MB = megabytes s = seconds
29 # GB = gigabytes min = minutes
34 #------------------------------------------------------------------------------
36 #------------------------------------------------------------------------------
38 # The default values of these variables are driven from the -D command-line
39 # option or PGDATA environment variable, represented here as ConfigDir.
41 data_directory = '/var/lib/postgresql/9.2/gombemi' # use data in another directory
42 # (change requires restart)
43 hba_file = '/etc/postgresql/9.2/gombemi/pg_hba.conf' # host-based authentication file
44 # (change requires restart)
45 ident_file = '/etc/postgresql/9.2/gombemi/pg_ident.conf' # ident configuration file
46 # (change requires restart)
48 # If external_pid_file is not explicitly set, no extra PID file is written.
49 external_pid_file = '/var/run/postgresql/9.2-gombemi.pid' # write an extra PID file
50 # (change requires restart)
53 #------------------------------------------------------------------------------
54 # CONNECTIONS AND AUTHENTICATION
55 #------------------------------------------------------------------------------
57 # - Connection Settings -
59 #listen_addresses = 'localhost' # 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 = 5435 # (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_directory = '/var/run/postgresql' # (change requires restart)
69 #unix_socket_group = '' # (change requires restart)
70 #unix_socket_permissions = 0777 # begin with 0 to use octal notation
71 # (change requires restart)
72 #bonjour = off # advertise server via Bonjour
73 # (change requires restart)
74 #bonjour_name = '' # defaults to the computer name
75 # (change requires restart)
77 # - Security and Authentication -
79 #authentication_timeout = 1min # 1s-600s
80 #ssl = true # (change requires restart)
81 ssl = false # (change requires restart)
82 #ssl_ciphers = 'ALL:!ADH:!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 = '/etc/ssl/certs/ssl-cert-snakeoil.pem' # (change requires restart)
86 ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.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
93 #krb_server_keyfile = ''
94 #krb_srvname = 'postgres' # (Kerberos only)
95 #krb_caseins_users = off
98 # see "man 7 tcp" for details
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
108 #------------------------------------------------------------------------------
109 # RESOURCE USAGE (except WAL)
110 #------------------------------------------------------------------------------
114 # gombemi: We've got 4G of RAM so start at 25% of ram per the doc's
115 # recommendation (up to 40% of ram).
116 # But we can't really use an entire GB since the kernel only allows
117 # a max of 1G and something else (apache?) must want some.
118 #shared_buffers = 32MB # min 128kB
119 #shared_buffers = 1GB # min 128kB
120 shared_buffers = 900MB # min 128kB
121 # (change requires restart)
122 # gombemi: Let the users use a bit of ram for temporary tables.
123 temp_buffers = 128MB # min 800kB
124 #temp_buffers = 8MB # min 800kB
125 #max_prepared_transactions = 0 # zero disables the feature
126 # (change requires restart)
127 # Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory
128 # per transaction slot, plus lock space (see max_locks_per_transaction).
129 # It is not advisable to set max_prepared_transactions nonzero unless you
130 # actively intend to use prepared transactions.
131 # gombemi: We don't anticipate a lot of concurrent queries.
132 work_mem = 128MB # min 64kB
133 #work_mem = 1MB # min 64kB
134 # gombemi: Suck ram when doing maintenance.
135 maintenance_work_mem = 200MB # min 1MB
136 #maintenance_work_mem = 16MB # min 1MB
137 # gombemi: ulimit -Hs is unlimited....
138 # But the real limit seems to be 8M (minus slop).
139 # Increase the limit if necessaary in /etc/security/limits.conf
141 max_stack_depth = 5MB # min 100kB
142 #max_stack_depth = 2MB # min 100kB
146 #temp_file_limit = -1 # limits per-session temp file space
147 # in kB, or -1 for no limit
149 # - Kernel Resource Usage -
151 #max_files_per_process = 1000 # min 25
152 # (change requires restart)
153 #shared_preload_libraries = '' # (change requires restart)
155 # - Cost-Based Vacuum Delay -
157 #vacuum_cost_delay = 0ms # 0-100 milliseconds
158 #vacuum_cost_page_hit = 1 # 0-10000 credits
159 #vacuum_cost_page_miss = 10 # 0-10000 credits
160 #vacuum_cost_page_dirty = 20 # 0-10000 credits
161 #vacuum_cost_limit = 200 # 1-10000 credits
163 # - Background Writer -
165 #bgwriter_delay = 200ms # 10-10000ms between rounds
166 #bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round
167 #bgwriter_lru_multiplier = 2.0 # 0-10.0 multipler on buffers scanned/round
169 # - Asynchronous Behavior -
171 # gombemi: We're on a SAN, so no idea.
172 # Use this until we hear back from Warren.
173 effective_io_concurrency = 8 # 1-1000; 0 disables prefetching
174 #effective_io_concurrency = 1 # 1-1000; 0 disables prefetching
177 #------------------------------------------------------------------------------
179 #------------------------------------------------------------------------------
183 #wal_level = minimal # minimal, archive, or hot_standby
184 # (change requires restart)
185 #fsync = on # turns forced synchronization on or off
186 #synchronous_commit = on # synchronization level;
187 # off, local, remote_write, or on
188 #wal_sync_method = fsync # the default is the first option
189 # supported by the operating system:
191 # fdatasync (default on Linux)
195 #full_page_writes = on # recover from partial page writes
196 #wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
197 # (change requires restart)
198 #wal_writer_delay = 200ms # 1-10000 milliseconds
200 #commit_delay = 0 # range 0-100000, in microseconds
201 #commit_siblings = 5 # range 1-1000
205 # gombemi: Cut down on log messages when copying databases.
206 #checkpoint_segments = 3 # in logfile segments, min 1, 16MB each
207 checkpoint_segments = 12 # in logfile segments, min 1, 16MB each
208 #checkpoint_timeout = 5min # range 30s-1h
209 #checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
210 #checkpoint_warning = 30s # 0 disables
214 #archive_mode = off # allows archiving to be done
215 # (change requires restart)
216 #archive_command = '' # command to use to archive a logfile segment
217 # placeholders: %p = path of file to archive
218 # %f = file name only
219 # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
220 #archive_timeout = 0 # force a logfile segment switch after this
221 # number of seconds; 0 disables
224 #------------------------------------------------------------------------------
226 #------------------------------------------------------------------------------
228 # - Sending Server(s) -
230 # Set these on the master and on any standby that will send replication data.
232 #max_wal_senders = 0 # max number of walsender processes
233 # (change requires restart)
234 #wal_keep_segments = 0 # in logfile segments, 16MB each; 0 disables
235 #replication_timeout = 60s # in milliseconds; 0 disables
239 # These settings are ignored on a standby server.
241 #synchronous_standby_names = '' # standby servers that provide sync rep
242 # comma-separated list of application_name
243 # from standby(s); '*' = all
244 #vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
246 # - Standby Servers -
248 # These settings are ignored on a master server.
250 #hot_standby = off # "on" allows queries during recovery
251 # (change requires restart)
252 #max_standby_archive_delay = 30s # max delay before canceling queries
253 # when reading WAL from archive;
254 # -1 allows indefinite delay
255 #max_standby_streaming_delay = 30s # max delay before canceling queries
256 # when reading streaming WAL;
257 # -1 allows indefinite delay
258 #wal_receiver_status_interval = 10s # send replies at least this often
260 #hot_standby_feedback = off # send info from standby to prevent
264 #------------------------------------------------------------------------------
266 #------------------------------------------------------------------------------
268 # - Planner Method Configuration -
270 #enable_bitmapscan = on
272 #enable_hashjoin = on
273 #enable_indexscan = on
274 #enable_indexonlyscan = on
275 #enable_material = on
276 #enable_mergejoin = on
277 #enable_nestloop = on
282 # - Planner Cost Constants -
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 # gombemi: Weeeell, we've got 4G of ram so do more index scanning.
290 effective_cache_size = 800MB
291 #effective_cache_size = 128MB
293 # - Genetic Query Optimizer -
297 #geqo_effort = 5 # range 1-10
298 #geqo_pool_size = 0 # selects default based on effort
299 #geqo_generations = 0 # selects default based on effort
300 #geqo_selection_bias = 2.0 # range 1.5-2.0
301 #geqo_seed = 0.0 # range 0.0-1.0
303 # - Other Planner Options -
305 # gombemi: Tables are not updated a lot, so make this larger.
306 #default_statistics_target = 100 # range 1-10000
307 default_statistics_target = 1000 # range 1-10000
308 #constraint_exclusion = partition # on, off, or partition
309 #cursor_tuple_fraction = 0.1 # range 0.0-1.0
310 #from_collapse_limit = 8
311 #join_collapse_limit = 8 # 1 disables collapsing of explicit
315 #------------------------------------------------------------------------------
316 # ERROR REPORTING AND LOGGING
317 #------------------------------------------------------------------------------
321 # gombemi: Leave the stock logging alone until there's a problem.
322 #log_destination = 'stderr' # Valid values are combinations of
323 # stderr, csvlog, syslog, and eventlog,
324 # depending on platform. csvlog
325 # requires logging_collector to be on.
327 # This is used when logging to stderr:
328 #logging_collector = off # Enable capturing of stderr and csvlog
329 # into log files. Required to be on for
331 # (change requires restart)
333 # These are only used if logging_collector is on:
334 #log_directory = 'pg_log' # directory where log files are written,
335 # can be absolute or relative to PGDATA
336 #log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
337 # can include strftime() escapes
338 #log_file_mode = 0600 # creation mode for log files,
339 # begin with 0 to use octal notation
340 #log_truncate_on_rotation = off # If on, an existing log file with the
341 # same name as the new log file will be
342 # truncated rather than appended to.
343 # But such truncation only occurs on
344 # time-driven rotation, not on restarts
345 # or size-driven rotation. Default is
346 # off, meaning append to existing files
348 #log_rotation_age = 1d # Automatic rotation of logfiles will
349 # happen after that time. 0 disables.
350 #log_rotation_size = 10MB # Automatic rotation of logfiles will
351 # happen after that much log output.
354 # These are relevant when logging to syslog:
355 #syslog_facility = 'LOCAL0'
356 #syslog_ident = 'postgres'
358 # This is only relevant when logging to eventlog (win32):
359 #event_source = 'PostgreSQL'
363 #client_min_messages = notice # values in order of decreasing detail:
374 #log_min_messages = warning # values in order of decreasing detail:
388 #log_min_error_statement = error # values in order of decreasing detail:
400 # panic (effectively off)
402 #log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
403 # and their durations, > 0 logs only
404 # statements running at least this number
410 #debug_print_parse = off
411 #debug_print_rewritten = off
412 #debug_print_plan = off
413 #debug_pretty_print = on
414 #log_checkpoints = off
415 #log_connections = off
416 #log_disconnections = off
418 #log_error_verbosity = default # terse, default, or verbose messages
420 log_line_prefix = '%t ' # special values:
421 # %a = application name
424 # %r = remote host and port
427 # %t = timestamp without milliseconds
428 # %m = timestamp with milliseconds
432 # %l = session line number
433 # %s = session start timestamp
434 # %v = virtual transaction ID
435 # %x = transaction ID (0 if none)
436 # %q = stop here in non-session
440 #log_lock_waits = off # log lock waits >= deadlock_timeout
441 #log_statement = 'none' # none, ddl, mod, all
442 #log_temp_files = -1 # log temporary files equal or larger
443 # than the specified size in kilobytes;
444 # -1 disables, 0 logs all temp files
445 log_timezone = 'localtime'
448 #------------------------------------------------------------------------------
450 #------------------------------------------------------------------------------
452 # - Query/Index Statistics Collector -
454 #track_activities = on
456 #track_io_timing = off
457 #track_functions = none # none, pl, all
458 #track_activity_query_size = 1024 # (change requires restart)
459 #update_process_title = on
460 #stats_temp_directory = 'pg_stat_tmp'
463 # - Statistics Monitoring -
465 #log_parser_stats = off
466 #log_planner_stats = off
467 #log_executor_stats = off
468 #log_statement_stats = off
471 #------------------------------------------------------------------------------
472 # AUTOVACUUM PARAMETERS
473 #------------------------------------------------------------------------------
475 #autovacuum = on # Enable autovacuum subprocess? 'on'
476 # requires track_counts to also be on.
477 #log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
478 # their durations, > 0 logs only
479 # actions running at least this number
481 #autovacuum_max_workers = 3 # max number of autovacuum subprocesses
482 # (change requires restart)
483 #autovacuum_naptime = 1min # time between autovacuum runs
484 #autovacuum_vacuum_threshold = 50 # min number of row updates before
486 #autovacuum_analyze_threshold = 50 # min number of row updates before
488 #autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
489 #autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
490 #autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
491 # (change requires restart)
492 #autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for
493 # autovacuum, in milliseconds;
494 # -1 means use vacuum_cost_delay
495 #autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
496 # autovacuum, -1 means use
500 #------------------------------------------------------------------------------
501 # CLIENT CONNECTION DEFAULTS
502 #------------------------------------------------------------------------------
504 # - Statement Behavior -
506 #search_path = '"$user",public' # schema names
507 #default_tablespace = '' # a tablespace name, '' uses the default
508 #temp_tablespaces = '' # a list of tablespace names, '' uses
509 # only default tablespace
510 #check_function_bodies = on
511 # gombemi: We want the highest level of data integrity.
512 #default_transaction_isolation = 'read committed'
513 default_transaction_isolation = 'serializable'
514 #default_transaction_read_only = off
515 #default_transaction_deferrable = off
516 #session_replication_role = 'origin'
517 #statement_timeout = 0 # in milliseconds, 0 is disabled
518 #vacuum_freeze_min_age = 50000000
519 #vacuum_freeze_table_age = 150000000
520 #bytea_output = 'hex' # hex, escape
521 #xmlbinary = 'base64'
522 #xmloption = 'content'
524 # - Locale and Formatting -
526 datestyle = 'iso, mdy'
527 #intervalstyle = 'postgres'
528 timezone = 'localtime'
529 #timezone_abbreviations = 'Default' # Select the set of available time zone
530 # abbreviations. Currently, there are
534 # You can create your own file in
535 # share/timezonesets/.
536 #extra_float_digits = 0 # min -15, max 3
537 #client_encoding = sql_ascii # actually, defaults to database
540 # These settings are initialized by initdb, but they can be changed.
541 lc_messages = 'C' # locale for system error message
543 lc_monetary = 'C' # locale for monetary formatting
544 lc_numeric = 'C' # locale for number formatting
545 lc_time = 'C' # locale for time formatting
547 # default configuration for text search
548 default_text_search_config = 'pg_catalog.english'
552 #dynamic_library_path = '$libdir'
553 #local_preload_libraries = ''
556 #------------------------------------------------------------------------------
558 #------------------------------------------------------------------------------
560 #deadlock_timeout = 1s
561 #max_locks_per_transaction = 64 # min 10
562 # (change requires restart)
563 # Note: Each lock table slot uses ~270 bytes of shared memory, and there are
564 # max_locks_per_transaction * (max_connections + max_prepared_transactions)
566 #max_pred_locks_per_transaction = 64 # min 10
567 # (change requires restart)
570 #------------------------------------------------------------------------------
571 # VERSION/PLATFORM COMPATIBILITY
572 #------------------------------------------------------------------------------
574 # - Previous PostgreSQL Versions -
577 #backslash_quote = safe_encoding # on, off, or safe_encoding
578 #default_with_oids = off
579 #escape_string_warning = on
580 #lo_compat_privileges = off
581 #quote_all_identifiers = off
582 #sql_inheritance = on
583 #standard_conforming_strings = on
584 #synchronize_seqscans = on
586 # - Other Platforms and Clients -
588 #transform_null_equals = off
591 #------------------------------------------------------------------------------
593 #------------------------------------------------------------------------------
595 #exit_on_error = off # terminate session on any error?
596 #restart_after_crash = on # reinitialize after backend crash?
599 #------------------------------------------------------------------------------
601 #------------------------------------------------------------------------------
603 # Add settings for extensions here