Guest User

Untitled

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