/[adm]/puppet/modules/postgresql/templates/postgresql.conf
ViewVC logotype

Contents of /puppet/modules/postgresql/templates/postgresql.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 61 - (show annotations) (download)
Fri Oct 29 00:38:08 2010 UTC (13 years, 5 months ago) by nanardon
File size: 17993 byte(s)
- enable ssl
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 = '(none)' # 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 = 'localhost' # what IP address(es) to listen on;
60 listen_addresses = '*'
61 # comma-separated list of addresses;
62 # defaults to 'localhost', '*' = all
63 # (change requires restart)
64 #port = 5432 # (change requires restart)
65 max_connections = 100 # (change requires restart)
66 # Note: Increasing max_connections costs ~400 bytes of shared memory per
67 # connection slot, plus lock space (see max_locks_per_transaction).
68 #superuser_reserved_connections = 3 # (change requires restart)
69 #unix_socket_directory = '' # (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 bonjour_name = 'Magiea\'s Postgresql server'
78
79 # - Security and Authentication -
80
81 #authentication_timeout = 1min # 1s-600s
82 #ssl = off # (change requires restart)
83 ssl = on
84 #ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers
85 # (change requires restart)
86 #ssl_renegotiation_limit = 512MB # amount of data between renegotiations
87 #password_encryption = on
88 #db_user_namespace = off
89
90 # Kerberos and GSSAPI
91 #krb_server_keyfile = ''
92 #krb_srvname = 'postgres' # (Kerberos only)
93 #krb_caseins_users = off
94
95 # - TCP Keepalives -
96 # see "man 7 tcp" for details
97
98 #tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
99 # 0 selects the system default
100 #tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
101 # 0 selects the system default
102 #tcp_keepalives_count = 0 # TCP_KEEPCNT;
103 # 0 selects the system default
104
105
106 #------------------------------------------------------------------------------
107 # RESOURCE USAGE (except WAL)
108 #------------------------------------------------------------------------------
109
110 # - Memory -
111
112 shared_buffers = 24MB # min 128kB
113 # (change requires restart)
114 #temp_buffers = 8MB # min 800kB
115 #max_prepared_transactions = 0 # zero disables the feature
116 # (change requires restart)
117 # Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory
118 # per transaction slot, plus lock space (see max_locks_per_transaction).
119 # It is not advisable to set max_prepared_transactions nonzero unless you
120 # actively intend to use prepared transactions.
121 #work_mem = 1MB # min 64kB
122 #maintenance_work_mem = 16MB # min 1MB
123 #max_stack_depth = 2MB # min 100kB
124
125 # - Kernel Resource Usage -
126
127 #max_files_per_process = 1000 # min 25
128 # (change requires restart)
129 #shared_preload_libraries = '' # (change requires restart)
130
131 # - Cost-Based Vacuum Delay -
132
133 #vacuum_cost_delay = 0ms # 0-100 milliseconds
134 #vacuum_cost_page_hit = 1 # 0-10000 credits
135 #vacuum_cost_page_miss = 10 # 0-10000 credits
136 #vacuum_cost_page_dirty = 20 # 0-10000 credits
137 #vacuum_cost_limit = 200 # 1-10000 credits
138
139 # - Background Writer -
140
141 #bgwriter_delay = 200ms # 10-10000ms between rounds
142 #bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round
143 #bgwriter_lru_multiplier = 2.0 # 0-10.0 multipler on buffers scanned/round
144
145 # - Asynchronous Behavior -
146
147 #effective_io_concurrency = 1 # 1-1000. 0 disables prefetching
148
149
150 #------------------------------------------------------------------------------
151 # WRITE AHEAD LOG
152 #------------------------------------------------------------------------------
153
154 # - Settings -
155
156 #wal_level = minimal # minimal, archive, or hot_standby
157 # (change requires restart)
158 #fsync = on # turns forced synchronization on or off
159 #synchronous_commit = on # immediate fsync at commit
160 #wal_sync_method = fsync # the default is the first option
161 # supported by the operating system:
162 # open_datasync
163 # fdatasync
164 # fsync
165 # fsync_writethrough
166 # open_sync
167 #full_page_writes = on # recover from partial page writes
168 #wal_buffers = 64kB # min 32kB
169 # (change requires restart)
170 #wal_writer_delay = 200ms # 1-10000 milliseconds
171
172 #commit_delay = 0 # range 0-100000, in microseconds
173 #commit_siblings = 5 # range 1-1000
174
175 # - Checkpoints -
176
177 #checkpoint_segments = 3 # in logfile segments, min 1, 16MB each
178 #checkpoint_timeout = 5min # range 30s-1h
179 #checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
180 #checkpoint_warning = 30s # 0 disables
181
182 # - Archiving -
183
184 #archive_mode = off # allows archiving to be done
185 # (change requires restart)
186 #archive_command = '' # command to use to archive a logfile segment
187 #archive_timeout = 0 # force a logfile segment switch after this
188 # number of seconds; 0 disables
189
190 # - Streaming Replication -
191
192 #max_wal_senders = 0 # max number of walsender processes
193 # (change requires restart)
194 #wal_sender_delay = 200ms # walsender cycle time, 1-10000 milliseconds
195 #wal_keep_segments = 0 # in logfile segments, 16MB each; 0 disables
196 #vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
197
198 # - Standby Servers -
199
200 #hot_standby = off # "on" allows queries during recovery
201 # (change requires restart)
202 #max_standby_archive_delay = 30s # max delay before canceling queries
203 # when reading WAL from archive;
204 # -1 allows indefinite delay
205 #max_standby_streaming_delay = 30s # max delay before canceling queries
206 # when reading streaming WAL;
207 # -1 allows indefinite delay
208
209
210 #------------------------------------------------------------------------------
211 # QUERY TUNING
212 #------------------------------------------------------------------------------
213
214 # - Planner Method Configuration -
215
216 #enable_bitmapscan = on
217 #enable_hashagg = on
218 #enable_hashjoin = on
219 #enable_indexscan = on
220 #enable_material = on
221 #enable_mergejoin = on
222 #enable_nestloop = on
223 #enable_seqscan = on
224 #enable_sort = on
225 #enable_tidscan = on
226
227 # - Planner Cost Constants -
228
229 #seq_page_cost = 1.0 # measured on an arbitrary scale
230 #random_page_cost = 4.0 # same scale as above
231 #cpu_tuple_cost = 0.01 # same scale as above
232 #cpu_index_tuple_cost = 0.005 # same scale as above
233 #cpu_operator_cost = 0.0025 # same scale as above
234 #effective_cache_size = 128MB
235
236 # - Genetic Query Optimizer -
237
238 #geqo = on
239 #geqo_threshold = 12
240 #geqo_effort = 5 # range 1-10
241 #geqo_pool_size = 0 # selects default based on effort
242 #geqo_generations = 0 # selects default based on effort
243 #geqo_selection_bias = 2.0 # range 1.5-2.0
244 #geqo_seed = 0.0 # range 0.0-1.0
245
246 # - Other Planner Options -
247
248 #default_statistics_target = 100 # range 1-10000
249 #constraint_exclusion = partition # on, off, or partition
250 #cursor_tuple_fraction = 0.1 # range 0.0-1.0
251 #from_collapse_limit = 8
252 #join_collapse_limit = 8 # 1 disables collapsing of explicit
253 # JOIN clauses
254
255
256 #------------------------------------------------------------------------------
257 # ERROR REPORTING AND LOGGING
258 #------------------------------------------------------------------------------
259
260 # - Where to Log -
261
262 #log_destination = 'stderr' # Valid values are combinations of
263 # stderr, csvlog, syslog, and eventlog,
264 # depending on platform. csvlog
265 # requires logging_collector to be on.
266
267 # This is used when logging to stderr:
268 #logging_collector = off # Enable capturing of stderr and csvlog
269 # into log files. Required to be on for
270 # csvlogs.
271 # (change requires restart)
272
273 # These are only used if logging_collector is on:
274 #log_directory = 'pg_log' # directory where log files are written,
275 # can be absolute or relative to PGDATA
276 #log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
277 # can include strftime() escapes
278 #log_truncate_on_rotation = off # If on, an existing log file of the
279 # same name as the new log file will be
280 # truncated rather than appended to.
281 # But such truncation only occurs on
282 # time-driven rotation, not on restarts
283 # or size-driven rotation. Default is
284 # off, meaning append to existing files
285 # in all cases.
286 #log_rotation_age = 1d # Automatic rotation of logfiles will
287 # happen after that time. 0 disables.
288 #log_rotation_size = 10MB # Automatic rotation of logfiles will
289 # happen after that much log output.
290 # 0 disables.
291
292 # These are relevant when logging to syslog:
293 #syslog_facility = 'LOCAL0'
294 #syslog_ident = 'postgres'
295
296 #silent_mode = off # Run server silently.
297 # DO NOT USE without syslog or
298 # logging_collector
299 # (change requires restart)
300
301
302 # - When to Log -
303
304 #client_min_messages = notice # values in order of decreasing detail:
305 # debug5
306 # debug4
307 # debug3
308 # debug2
309 # debug1
310 # log
311 # notice
312 # warning
313 # error
314
315 #log_min_messages = warning # values in order of decreasing detail:
316 # debug5
317 # debug4
318 # debug3
319 # debug2
320 # debug1
321 # info
322 # notice
323 # warning
324 # error
325 # log
326 # fatal
327 # panic
328
329 #log_min_error_statement = error # values in order of decreasing detail:
330 # debug5
331 # debug4
332 # debug3
333 # debug2
334 # debug1
335 # info
336 # notice
337 # warning
338 # error
339 # log
340 # fatal
341 # panic (effectively off)
342
343 #log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
344 # and their durations, > 0 logs only
345 # statements running at least this number
346 # of milliseconds
347
348
349 # - What to Log -
350
351 #debug_print_parse = off
352 #debug_print_rewritten = off
353 #debug_print_plan = off
354 #debug_pretty_print = on
355 #log_checkpoints = off
356 #log_connections = off
357 #log_disconnections = off
358 #log_duration = off
359 #log_error_verbosity = default # terse, default, or verbose messages
360 #log_hostname = off
361 #log_line_prefix = '' # special values:
362 # %a = application name
363 # %u = user name
364 # %d = database name
365 # %r = remote host and port
366 # %h = remote host
367 # %p = process ID
368 # %t = timestamp without milliseconds
369 # %m = timestamp with milliseconds
370 # %i = command tag
371 # %e = SQL state
372 # %c = session ID
373 # %l = session line number
374 # %s = session start timestamp
375 # %v = virtual transaction ID
376 # %x = transaction ID (0 if none)
377 # %q = stop here in non-session
378 # processes
379 # %% = '%'
380 # e.g. '<%u%%%d> '
381 #log_lock_waits = off # log lock waits >= deadlock_timeout
382 #log_statement = 'none' # none, ddl, mod, all
383 #log_temp_files = -1 # log temporary files equal or larger
384 # than the specified size in kilobytes;
385 # -1 disables, 0 logs all temp files
386 #log_timezone = unknown # actually, defaults to TZ environment
387 # setting
388
389
390 #------------------------------------------------------------------------------
391 # RUNTIME STATISTICS
392 #------------------------------------------------------------------------------
393
394 # - Query/Index Statistics Collector -
395
396 #track_activities = on
397 #track_counts = on
398 #track_functions = none # none, pl, all
399 #track_activity_query_size = 1024 # (change requires restart)
400 #update_process_title = on
401 #stats_temp_directory = 'pg_stat_tmp'
402
403
404 # - Statistics Monitoring -
405
406 #log_parser_stats = off
407 #log_planner_stats = off
408 #log_executor_stats = off
409 #log_statement_stats = off
410
411
412 #------------------------------------------------------------------------------
413 # AUTOVACUUM PARAMETERS
414 #------------------------------------------------------------------------------
415
416 #autovacuum = on # Enable autovacuum subprocess? 'on'
417 # requires track_counts to also be on.
418 #log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
419 # their durations, > 0 logs only
420 # actions running at least this number
421 # of milliseconds.
422 #autovacuum_max_workers = 3 # max number of autovacuum subprocesses
423 # (change requires restart)
424 #autovacuum_naptime = 1min # time between autovacuum runs
425 #autovacuum_vacuum_threshold = 50 # min number of row updates before
426 # vacuum
427 #autovacuum_analyze_threshold = 50 # min number of row updates before
428 # analyze
429 #autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
430 #autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
431 #autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
432 # (change requires restart)
433 #autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for
434 # autovacuum, in milliseconds;
435 # -1 means use vacuum_cost_delay
436 #autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
437 # autovacuum, -1 means use
438 # vacuum_cost_limit
439
440
441 #------------------------------------------------------------------------------
442 # CLIENT CONNECTION DEFAULTS
443 #------------------------------------------------------------------------------
444
445 # - Statement Behavior -
446
447 #search_path = '"$user",public' # schema names
448 #default_tablespace = '' # a tablespace name, '' uses the default
449 #temp_tablespaces = '' # a list of tablespace names, '' uses
450 # only default tablespace
451 #check_function_bodies = on
452 #default_transaction_isolation = 'read committed'
453 #default_transaction_read_only = off
454 #session_replication_role = 'origin'
455 #statement_timeout = 0 # in milliseconds, 0 is disabled
456 #vacuum_freeze_min_age = 50000000
457 #vacuum_freeze_table_age = 150000000
458 #bytea_output = 'hex' # hex, escape
459 #xmlbinary = 'base64'
460 #xmloption = 'content'
461
462 # - Locale and Formatting -
463
464 datestyle = 'iso, mdy'
465 #intervalstyle = 'postgres'
466 #timezone = unknown # actually, defaults to TZ environment
467 # setting
468 #timezone_abbreviations = 'Default' # Select the set of available time zone
469 # abbreviations. Currently, there are
470 # Default
471 # Australia
472 # India
473 # You can create your own file in
474 # share/timezonesets/.
475 #extra_float_digits = 0 # min -15, max 3
476 #client_encoding = sql_ascii # actually, defaults to database
477 # encoding
478
479 # These settings are initialized by initdb, but they can be changed.
480 lc_messages = 'C' # locale for system error message
481 # strings
482 lc_monetary = 'C' # locale for monetary formatting
483 lc_numeric = 'C' # locale for number formatting
484 lc_time = 'C' # locale for time formatting
485
486 # default configuration for text search
487 default_text_search_config = 'pg_catalog.english'
488
489 # - Other Defaults -
490
491 #dynamic_library_path = '$libdir'
492 #local_preload_libraries = ''
493
494
495 #------------------------------------------------------------------------------
496 # LOCK MANAGEMENT
497 #------------------------------------------------------------------------------
498
499 #deadlock_timeout = 1s
500 #max_locks_per_transaction = 64 # min 10
501 # (change requires restart)
502 # Note: Each lock table slot uses ~270 bytes of shared memory, and there are
503 # max_locks_per_transaction * (max_connections + max_prepared_transactions)
504 # lock table slots.
505
506
507 #------------------------------------------------------------------------------
508 # VERSION/PLATFORM COMPATIBILITY
509 #------------------------------------------------------------------------------
510
511 # - Previous PostgreSQL Versions -
512
513 #array_nulls = on
514 #backslash_quote = safe_encoding # on, off, or safe_encoding
515 #default_with_oids = off
516 #escape_string_warning = on
517 #lo_compat_privileges = off
518 #sql_inheritance = on
519 #standard_conforming_strings = off
520 #synchronize_seqscans = on
521
522 # - Other Platforms and Clients -
523
524 #transform_null_equals = off
525
526
527 #------------------------------------------------------------------------------
528 # CUSTOMIZED OPTIONS
529 #------------------------------------------------------------------------------
530
531 #custom_variable_classes = '' # list of custom variable class names

  ViewVC Help
Powered by ViewVC 1.1.30