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

  ViewVC Help
Powered by ViewVC 1.1.30