SHARE
TWEET

Untitled

a guest Oct 15th, 2019 117 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [root@database2 1c_bp]# cat postgresql.conf
  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, run "pg_ctl reload", or execute
  21. # "SELECT pg_reload_conf()".  Some parameters, which are marked below,
  22. # require a server shutdown and restart to 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. #                TB = terabytes                     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 = ''                 # 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'; use '*' for all
  63.                                         # (change requires restart)
  64. port = 5433                             # (change requires restart)
  65. max_connections = 500                   # (change requires restart) #DAA#
  66. #superuser_reserved_connections = 3     # (change requires restart)
  67. #unix_socket_directories = '/tmp'       # comma-separated list of directories
  68.                                         # (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)
  76.  
  77. # - TCP Keepalives -
  78. # see "man 7 tcp" for details
  79.  
  80. #tcp_keepalives_idle = 0                # TCP_KEEPIDLE, in seconds;
  81.                                         # 0 selects the system default
  82. #tcp_keepalives_interval = 0            # TCP_KEEPINTVL, in seconds;
  83.                                         # 0 selects the system default
  84. #tcp_keepalives_count = 0               # TCP_KEEPCNT;
  85.                                         # 0 selects the system default
  86.  
  87. # - Authentication -
  88.  
  89. #authentication_timeout = 1min          # 1s-600s
  90. #password_encryption = md5              # md5 or scram-sha-256
  91. #db_user_namespace = off
  92.  
  93. # GSSAPI using Kerberos
  94. #krb_server_keyfile = ''
  95. #krb_caseins_users = off
  96.  
  97. # - SSL -
  98.  
  99. #ssl = off
  100. #ssl_ca_file = ''
  101. #ssl_cert_file = 'server.crt'
  102. #ssl_crl_file = ''
  103. #ssl_key_file = 'server.key'
  104. #ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers
  105. #ssl_prefer_server_ciphers = on
  106. #ssl_ecdh_curve = 'prime256v1'
  107. #ssl_dh_params_file = ''
  108. #ssl_passphrase_command = ''
  109. #ssl_passphrase_command_supports_reload = off
  110.  
  111.  
  112. #------------------------------------------------------------------------------
  113. # RESOURCE USAGE (except WAL)
  114. #------------------------------------------------------------------------------
  115.  
  116. # - Memory -
  117.  
  118. shared_buffers = 100GB                  # min 128kB #DAA#
  119.                                         # (change requires restart)
  120. #huge_pages = try                       # on, off, or try
  121.                                         # (change requires restart)
  122. temp_buffers = 512MB                    # min 800kB #DAA#
  123. #max_prepared_transactions = 0          # zero disables the feature
  124.                                         # (change requires restart)
  125. # Caution: it is not advisable to set max_prepared_transactions nonzero unless
  126. # you actively intend to use prepared transactions.
  127. work_mem = 266MB                                # min 64kB #DAA#
  128. maintenance_work_mem = 1GB              # min 1MB #DAA#
  129. #autovacuum_work_mem = -1               # min 1MB, or -1 to use maintenance_work_mem
  130. #max_stack_depth = 2MB                  # min 100kB
  131. dynamic_shared_memory_type = posix      # the default is the first option
  132.                                         # supported by the operating system:
  133.                                         #   posix
  134.                                         #   sysv
  135.                                         #   windows
  136.                                         #   mmap
  137.                                         # use none to disable dynamic shared memory
  138.                                         # (change requires restart)
  139.  
  140. # - Disk -
  141.  
  142. #temp_file_limit = -1                   # limits per-process temp file space
  143.                                         # in kB, or -1 for no limit
  144.  
  145. # - Kernel Resources -
  146.  
  147. max_files_per_process = 100000          # min 25 #DAA#
  148.                                         # (change requires restart)
  149.  
  150. # - Cost-Based Vacuum Delay -
  151.  
  152. #vacuum_cost_delay = 0                  # 0-100 milliseconds
  153. #vacuum_cost_page_hit = 1               # 0-10000 credits
  154. #vacuum_cost_page_miss = 10             # 0-10000 credits
  155. #vacuum_cost_page_dirty = 20            # 0-10000 credits
  156. #vacuum_cost_limit = 200                # 1-10000 credits
  157.  
  158. # - Background Writer -
  159.  
  160. #bgwriter_delay = 200ms                 # 10-10000ms between rounds
  161. #bgwriter_lru_maxpages = 100            # max buffers written/round, 0 disables
  162. #bgwriter_lru_multiplier = 2.0          # 0-10.0 multiplier on buffers scanned/round
  163. #bgwriter_flush_after = 512kB           # measured in pages, 0 disables
  164.  
  165. # - Asynchronous Behavior -
  166.  
  167. #effective_io_concurrency = 1           # 1-1000; 0 disables prefetching
  168. #max_worker_processes = 8               # (change requires restart)
  169. #max_parallel_maintenance_workers = 2   # taken from max_parallel_workers
  170. max_parallel_workers_per_gather = 0     # taken from max_parallel_workers #DAA#
  171. #parallel_leader_participation = on
  172. #max_parallel_workers = 8               # maximum number of max_worker_processes that
  173.                                         # can be used in parallel operations
  174. #old_snapshot_threshold = -1            # 1min-60d; -1 disables; 0 is immediate
  175.                                         # (change requires restart)
  176. #backend_flush_after = 0                # measured in pages, 0 disables
  177.  
  178.  
  179. #------------------------------------------------------------------------------
  180. # WRITE-AHEAD LOG
  181. #------------------------------------------------------------------------------
  182.  
  183. # - Settings -
  184.  
  185. wal_level = replica                     # minimal, replica, or logical #DAA#
  186.                                         # (change requires restart)
  187. #fsync = on                             # flush data to disk for crash safety
  188.                                         # (turning this off can cause
  189.                                         # unrecoverable data corruption)
  190. synchronous_commit = off                # synchronization level; #DAA#
  191.                                         # off, local, remote_write, remote_apply, or on
  192. #wal_sync_method = fsync                # the default is the first option
  193.                                         # supported by the operating system:
  194.                                         #   open_datasync
  195.                                         #   fdatasync (default on Linux)
  196.                                         #   fsync
  197.                                         #   fsync_writethrough
  198.                                         #   open_sync
  199. #full_page_writes = on                  # recover from partial page writes
  200. #wal_compression = off                  # enable compression of full-page writes
  201. #wal_log_hints = off                    # also do full page writes of non-critical updates
  202.                                         # (change requires restart)
  203. #wal_buffers = -1                       # min 32kB, -1 sets based on shared_buffers
  204.                                         # (change requires restart)
  205. #wal_writer_delay = 200ms               # 1-10000 milliseconds
  206. #wal_writer_flush_after = 1MB           # measured in pages, 0 disables
  207.  
  208. commit_delay = 1000                     # range 0-100000, in microseconds #DAA#
  209. #commit_siblings = 5                    # range 1-1000
  210.  
  211. # - Checkpoints -
  212.  
  213. checkpoint_timeout = 30min              # range 30s-1d #DAA#
  214. max_wal_size = 8GB                      #DAA#
  215. min_wal_size = 2GB                      #DAA#
  216. checkpoint_completion_target = 0.9      # checkpoint target duration, 0.0 - 1.0 #DAA#
  217. #checkpoint_flush_after = 256kB         # measured in pages, 0 disables
  218. #checkpoint_warning = 30s               # 0 disables
  219.  
  220. # - Archiving -
  221.  
  222. archive_mode = on               # enables archiving; off, on, or always
  223.                                 # (change requires restart)
  224.  
  225. # Barman
  226. archive_command = 'cp %p /pg_base/wal_archive-1c_bp/%f'
  227.  
  228.                                 # placeholders: %p = path of file to archive
  229.                                 #               %f = file name only
  230.                                 # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
  231. #archive_timeout = 0            # force a logfile segment switch after this
  232.                                 # number of seconds; 0 disables
  233.  
  234.  
  235. #------------------------------------------------------------------------------
  236. # REPLICATION
  237. #------------------------------------------------------------------------------
  238.  
  239. # - Sending Servers -
  240.  
  241. # Set these on the master and on any standby that will send replication data.
  242.  
  243. max_wal_senders = 2             # max number of walsender processes #DAA#
  244.                                 # (change requires restart)
  245. #wal_keep_segments = 0          # in logfile segments; 0 disables
  246. #wal_sender_timeout = 60s       # in milliseconds; 0 disables
  247.  
  248. max_replication_slots = 2       # max number of replication slots
  249.                                 # (change requires restart)
  250. #track_commit_timestamp = off   # collect timestamp of transaction commit
  251.                                 # (change requires restart)
  252.  
  253. # - Master Server -
  254.  
  255. # These settings are ignored on a standby server.
  256.  
  257. #synchronous_standby_names = '' # standby servers that provide sync rep
  258.                                 # method to choose sync standbys, number of sync standbys,
  259.                                 # and comma-separated list of application_name
  260.                                 # from standby(s); '*' = all
  261. #vacuum_defer_cleanup_age = 0   # number of xacts by which cleanup is delayed
  262.  
  263. # - Standby Servers -
  264.  
  265. # These settings are ignored on a master server.
  266.  
  267. #hot_standby = on                       # "off" disallows queries during recovery
  268.                                         # (change requires restart)
  269. #max_standby_archive_delay = 30s        # max delay before canceling queries
  270.                                         # when reading WAL from archive;
  271.                                         # -1 allows indefinite delay
  272. #max_standby_streaming_delay = 30s      # max delay before canceling queries
  273.                                         # when reading streaming WAL;
  274.                                         # -1 allows indefinite delay
  275. #wal_receiver_status_interval = 10s     # send replies at least this often
  276.                                         # 0 disables
  277. #hot_standby_feedback = off             # send info from standby to prevent
  278.                                         # query conflicts
  279. #wal_receiver_timeout = 60s             # time that receiver waits for
  280.                                         # communication from master
  281.                                         # in milliseconds; 0 disables
  282. #wal_retrieve_retry_interval = 5s       # time to wait before retrying to
  283.                                         # retrieve WAL after a failed attempt
  284.  
  285. # - Subscribers -
  286.  
  287. # These settings are ignored on a publisher.
  288.  
  289. #max_logical_replication_workers = 4    # taken from max_worker_processes
  290.                                         # (change requires restart)
  291. #max_sync_workers_per_subscription = 2  # taken from max_logical_replication_workers
  292.  
  293.  
  294. #------------------------------------------------------------------------------
  295. # QUERY TUNING
  296. #------------------------------------------------------------------------------
  297.  
  298. # - Planner Method Configuration -
  299.  
  300. #enable_bitmapscan = on
  301. #enable_hashagg = on
  302. #enable_hashjoin = on
  303. #enable_indexscan = on
  304. #enable_indexonlyscan = on
  305. #enable_material = on
  306. #enable_mergejoin = on
  307. #enable_nestloop = on
  308. #enable_parallel_append = on
  309. #enable_seqscan = on
  310. #enable_sort = on
  311. #enable_tidscan = on
  312. #enable_partitionwise_join = off
  313. #enable_partitionwise_aggregate = off
  314. #enable_parallel_hash = on
  315. #enable_partition_pruning = on
  316.  
  317. # - Planner Cost Constants -
  318.  
  319. #seq_page_cost = 1.0                    # measured on an arbitrary scale
  320. random_page_cost = 1.1                  # same scale as above #DAA#
  321. #cpu_tuple_cost = 0.01                  # same scale as above
  322. #cpu_index_tuple_cost = 0.005           # same scale as above
  323. #cpu_operator_cost = 0.0025             # same scale as above
  324. #parallel_tuple_cost = 0.1              # same scale as above
  325. #parallel_setup_cost = 1000.0   # same scale as above
  326.  
  327. #jit_above_cost = 100000                # perform JIT compilation if available
  328.                                         # and query more expensive than this;
  329.                                         # -1 disables
  330. #jit_inline_above_cost = 500000         # inline small functions if query is
  331.                                         # more expensive than this; -1 disables
  332. #jit_optimize_above_cost = 500000       # use expensive JIT optimizations if
  333.                                         # query is more expensive than this;
  334.                                         # -1 disables
  335.  
  336. #min_parallel_table_scan_size = 8MB
  337. #min_parallel_index_scan_size = 512kB
  338. effective_cache_size = 400GB             #DAA#
  339.  
  340. # - Genetic Query Optimizer -
  341.  
  342. #geqo = on
  343. #geqo_threshold = 12
  344. #geqo_effort = 5                        # range 1-10
  345. #geqo_pool_size = 0                     # selects default based on effort
  346. #geqo_generations = 0                   # selects default based on effort
  347. #geqo_selection_bias = 2.0              # range 1.5-2.0
  348. #geqo_seed = 0.0                        # range 0.0-1.0
  349.  
  350. # - Other Planner Options -
  351.  
  352. #default_statistics_target = 100        # range 1-10000
  353. #constraint_exclusion = partition       # on, off, or partition
  354. #cursor_tuple_fraction = 0.1            # range 0.0-1.0
  355. #from_collapse_limit = 8
  356. #join_collapse_limit = 8                # 1 disables collapsing of explicit
  357.                                         # JOIN clauses
  358. #force_parallel_mode = off
  359. #jit = off                              # allow JIT compilation
  360.  
  361.  
  362. #------------------------------------------------------------------------------
  363. # REPORTING AND LOGGING
  364. #------------------------------------------------------------------------------
  365.  
  366. # - Where to Log -
  367.  
  368. #log_destination = 'stderr'             # Valid values are combinations of
  369.                                         # stderr, csvlog, syslog, and eventlog,
  370.                                         # depending on platform.  csvlog
  371.                                         # requires logging_collector to be on.
  372.  
  373. # This is used when logging to stderr:
  374. logging_collector = on # Enable capturing of stderr and csvlog
  375.                                         # into log files. Required to be on for
  376.                                         # csvlogs.
  377.                                         # (change requires restart)
  378.  
  379. # These are only used if logging_collector is on:
  380. #log_directory = 'log'                  # directory where log files are written,
  381.                                         # can be absolute or relative to PGDATA
  382. #log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'        # log file name pattern,
  383.                                         # can include strftime() escapes
  384. #log_file_mode = 0600                   # creation mode for log files,
  385.                                         # begin with 0 to use octal notation
  386. #log_truncate_on_rotation = off         # If on, an existing log file with the
  387.                                         # same name as the new log file will be
  388.                                         # truncated rather than appended to.
  389.                                         # But such truncation only occurs on
  390.                                         # time-driven rotation, not on restarts
  391.                                         # or size-driven rotation.  Default is
  392.                                         # off, meaning append to existing files
  393.                                         # in all cases.
  394. #log_rotation_age = 1d                  # Automatic rotation of logfiles will
  395.                                         # happen after that time.  0 disables.
  396. #log_rotation_size = 10MB               # Automatic rotation of logfiles will
  397.                                         # happen after that much log output.
  398.                                         # 0 disables.
  399.  
  400. # These are relevant when logging to syslog:
  401. #syslog_facility = 'LOCAL0'
  402. #syslog_ident = 'postgres'
  403. #syslog_sequence_numbers = on
  404. #syslog_split_messages = on
  405.  
  406. # This is only relevant when logging to eventlog (win32):
  407. # (change requires restart)
  408. #event_source = 'PostgreSQL'
  409.  
  410. # - When to Log -
  411.  
  412. #log_min_messages = warning             # values in order of decreasing detail:
  413.                                         #   debug5
  414.                                         #   debug4
  415.                                         #   debug3
  416.                                         #   debug2
  417.                                         #   debug1
  418.                                         #   info
  419.                                         #   notice
  420.                                         #   warning
  421.                                         #   error
  422.                                         #   log
  423.                                         #   fatal
  424.                                         #   panic
  425.  
  426. #log_min_error_statement = error        # values in order of decreasing detail:
  427.                                         #   debug5
  428.                                         #   debug4
  429.                                         #   debug3
  430.                                         #   debug2
  431.                                         #   debug1
  432.                                         #   info
  433.                                         #   notice
  434.                                         #   warning
  435.                                         #   error
  436.                                         #   log
  437.                                         #   fatal
  438.                                         #   panic (effectively off)
  439.  
  440. log_min_duration_statement = 10000      # -1 is disabled, 0 logs all statements #DAA#
  441.                                         # and their durations, > 0 logs only
  442.                                         # statements running at least this number
  443.                                         # of milliseconds
  444.  
  445.  
  446. # - What to Log -
  447.  
  448. #debug_print_parse = off
  449. #debug_print_rewritten = off
  450. #debug_print_plan = off
  451. #debug_pretty_print = on
  452. #log_checkpoints = off
  453. #log_connections = off
  454. #log_disconnections = off
  455. #log_duration = off
  456. #log_error_verbosity = default          # terse, default, or verbose messages
  457. #log_hostname = off
  458. log_line_prefix = '%m [%d] '            # special values: #DAA#
  459.                                         #   %a = application name
  460.                                         #   %u = user name
  461.                                         #   %d = database name
  462.                                         #   %r = remote host and port
  463.                                         #   %h = remote host
  464.                                         #   %p = process ID
  465.                                         #   %t = timestamp without milliseconds
  466.                                         #   %m = timestamp with milliseconds
  467.                                         #   %n = timestamp with milliseconds (as a Unix epoch)
  468.                                         #   %i = command tag
  469.                                         #   %e = SQL state
  470.                                         #   %c = session ID
  471.                                         #   %l = session line number
  472.                                         #   %s = session start timestamp
  473.                                         #   %v = virtual transaction ID
  474.                                         #   %x = transaction ID (0 if none)
  475.                                         #   %q = stop here in non-session
  476.                                         #        processes
  477.                                         #   %% = '%'
  478.                                         # e.g. '<%u%%%d> '
  479. #log_lock_waits = off                   # log lock waits >= deadlock_timeout
  480. #log_statement = 'none'                 # none, ddl, mod, all
  481. #log_replication_commands = off
  482. #log_temp_files = -1                    # log temporary files equal or larger
  483.                                         # than the specified size in kilobytes;
  484.                                         # -1 disables, 0 logs all temp files
  485. log_timezone = 'US/Eastern'
  486.  
  487. #------------------------------------------------------------------------------
  488. # PROCESS TITLE
  489. #------------------------------------------------------------------------------
  490.  
  491. #cluster_name = ''                      # added to process titles if nonempty
  492.                                         # (change requires restart)
  493. #update_process_title = on
  494.  
  495.  
  496. #------------------------------------------------------------------------------
  497. # STATISTICS
  498. #------------------------------------------------------------------------------
  499.  
  500. # - Query and Index Statistics Collector -
  501.  
  502. #track_activities = on
  503. #track_counts = on
  504. #track_io_timing = off
  505. #track_functions = none                 # none, pl, all
  506. #track_activity_query_size = 1024       # (change requires restart)
  507. #stats_temp_directory = 'pg_stat_tmp'
  508.  
  509.  
  510. # - Monitoring -
  511.  
  512. #log_parser_stats = off
  513. #log_planner_stats = off
  514. #log_executor_stats = off
  515. #log_statement_stats = off
  516.  
  517.  
  518. #------------------------------------------------------------------------------
  519. # AUTOVACUUM
  520. #------------------------------------------------------------------------------
  521.  
  522. #autovacuum = on                        # Enable autovacuum subprocess?  'on'
  523.                                         # requires track_counts to also be on.
  524. log_autovacuum_min_duration = 10000     # -1 disables, 0 logs all actions and #DAA#
  525.                                         # their durations, > 0 logs only
  526.                                         # actions running at least this number
  527.                                         # of milliseconds.
  528. autovacuum_max_workers = 8              # max number of autovacuum subprocesses #DAA#
  529.                                         # (change requires restart)
  530. autovacuum_naptime = 20s                # time between autovacuum runs #DAA#
  531. #autovacuum_vacuum_threshold = 50       # min number of row updates before
  532.                                         # vacuum
  533. #autovacuum_analyze_threshold = 50      # min number of row updates before
  534.                                         # analyze
  535. autovacuum_vacuum_scale_factor = 0.01   # fraction of table size before vacuum #DAA#
  536. autovacuum_analyze_scale_factor = 0.005 # fraction of table size before analyze #DAA#
  537. #autovacuum_freeze_max_age = 200000000  # maximum XID age before forced vacuum
  538.                                         # (change requires restart)
  539. #autovacuum_multixact_freeze_max_age = 400000000        # maximum multixact age
  540.                                         # before forced vacuum
  541.                                         # (change requires restart)
  542. #autovacuum_vacuum_cost_delay = 20ms    # default vacuum cost delay for
  543.                                         # autovacuum, in milliseconds;
  544.                                         # -1 means use vacuum_cost_delay
  545. autovacuum_vacuum_cost_limit = 500      # default vacuum cost limit for #DAA#
  546.                                         # autovacuum, -1 means use
  547.                                         # vacuum_cost_limit
  548.  
  549.  
  550. #------------------------------------------------------------------------------
  551. # CLIENT CONNECTION DEFAULTS
  552. #------------------------------------------------------------------------------
  553.  
  554. # - Statement Behavior -
  555.  
  556. #client_min_messages = notice           # values in order of decreasing detail:
  557.                                         #   debug5
  558.                                         #   debug4
  559.                                         #   debug3
  560.                                         #   debug2
  561.                                         #   debug1
  562.                                         #   log
  563.                                         #   notice
  564.                                         #   warning
  565.                                         #   error
  566. #search_path = '"$user", public'        # schema names
  567. #row_security = on
  568. #default_tablespace = ''                # a tablespace name, '' uses the default
  569. #temp_tablespaces = ''                  # a list of tablespace names, '' uses
  570.                                         # only default tablespace
  571. #check_function_bodies = on
  572. #default_transaction_isolation = 'read committed'
  573. #default_transaction_read_only = off
  574. #default_transaction_deferrable = off
  575. #session_replication_role = 'origin'
  576. #statement_timeout = 0                  # in milliseconds, 0 is disabled
  577. #lock_timeout = 0                       # in milliseconds, 0 is disabled
  578. #idle_in_transaction_session_timeout = 0        # in milliseconds, 0 is disabled
  579. #vacuum_freeze_min_age = 50000000
  580. #vacuum_freeze_table_age = 150000000
  581. #vacuum_multixact_freeze_min_age = 5000000
  582. #vacuum_multixact_freeze_table_age = 150000000
  583. #vacuum_cleanup_index_scale_factor = 0.1        # fraction of total number of tuples
  584.                                                 # before index cleanup, 0 always performs
  585.                                                 # index cleanup
  586. #bytea_output = 'hex'                   # hex, escape
  587. #xmlbinary = 'base64'
  588. #xmloption = 'content'
  589. #gin_fuzzy_search_limit = 0
  590. #gin_pending_list_limit = 4MB
  591.  
  592. # - Locale and Formatting -
  593.  
  594. datestyle = 'iso, mdy'
  595. #intervalstyle = 'postgres'
  596. timezone = 'US/Eastern'
  597. #timezone_abbreviations = 'Default'     # Select the set of available time zone
  598.                                         # abbreviations.  Currently, there are
  599.                                         #   Default
  600.                                         #   Australia (historical usage)
  601.                                         #   India
  602.                                         # You can create your own file in
  603.                                         # share/timezonesets/.
  604. #extra_float_digits = 0                 # min -15, max 3
  605. #client_encoding = sql_ascii            # actually, defaults to database
  606.                                         # encoding
  607.  
  608. # These settings are initialized by initdb, but they can be changed.
  609. lc_messages = 'ru_RU.UTF-8'                     # locale for system error message
  610.                                         # strings
  611. lc_monetary = 'ru_RU.UTF-8'                     # locale for monetary formatting
  612. lc_numeric = 'ru_RU.UTF-8'                      # locale for number formatting
  613. lc_time = 'ru_RU.UTF-8'                         # locale for time formatting
  614.  
  615. # default configuration for text search
  616. default_text_search_config = 'pg_catalog.english'
  617.  
  618. # - Shared Library Preloading -
  619.  
  620. shared_preload_libraries = 'online_analyze, plantuner, pg_stat_statements'      # (change requires restart) #DAA#
  621. #local_preload_libraries = ''
  622. #session_preload_libraries = ''
  623. #jit_provider = 'llvmjit'               # JIT library to use
  624.  
  625. # - Other Defaults -
  626.  
  627. #dynamic_library_path = '$libdir'
  628.  
  629.  
  630. #------------------------------------------------------------------------------
  631. # LOCK MANAGEMENT
  632. #------------------------------------------------------------------------------
  633.  
  634. #deadlock_timeout = 1s
  635. max_locks_per_transaction = 256         # min 10 #DAA#
  636.                                         # (change requires restart)
  637. #max_pred_locks_per_transaction = 64    # min 10
  638.                                         # (change requires restart)
  639. #max_pred_locks_per_relation = -2       # negative values mean
  640.                                         # (max_pred_locks_per_transaction
  641.                                         #  / -max_pred_locks_per_relation) - 1
  642. #max_pred_locks_per_page = 2            # min 0
  643.  
  644.  
  645. #------------------------------------------------------------------------------
  646. # VERSION AND PLATFORM COMPATIBILITY
  647. #------------------------------------------------------------------------------
  648.  
  649. # - Previous PostgreSQL Versions -
  650.  
  651. #array_nulls = on
  652. #backslash_quote = safe_encoding        # on, off, or safe_encoding
  653. #default_with_oids = off
  654. #escape_string_warning = on
  655. #lo_compat_privileges = off
  656. #operator_precedence_warning = off
  657. #quote_all_identifiers = off
  658. #standard_conforming_strings = on
  659. #synchronize_seqscans = on
  660.  
  661. # - Other Platforms and Clients -
  662.  
  663. #transform_null_equals = off
  664.  
  665.  
  666. #------------------------------------------------------------------------------
  667. # ERROR HANDLING
  668. #------------------------------------------------------------------------------
  669.  
  670. #exit_on_error = off                    # terminate session on any error?
  671. #restart_after_crash = on               # reinitialize after backend crash?
  672. #data_sync_retry = off                  # retry or panic on failure to fsync data?
  673.  
  674.  
  675. #------------------------------------------------------------------------------
  676. # CONFIG FILE INCLUDES
  677. #------------------------------------------------------------------------------
  678.  
  679. # These options allow settings to be loaded from files other than the
  680. # default postgresql.conf.
  681.  
  682. #include_dir = 'conf.d'                 # include files ending in '.conf' from
  683.                                         # directory 'conf.d'
  684. #include_if_exists = 'exists.conf'      # include file only if it exists
  685. #include = 'special.conf'               # include file
  686.  
  687.  
  688. #------------------------------------------------------------------------------
  689. # CUSTOMIZED OPTIONS
  690. #------------------------------------------------------------------------------
  691. #DAA#
  692. # Add settings for extensions here
  693. online_analyze.threshold = 50
  694. online_analyze.scale_factor = 0.1
  695. online_analyze.enable = on
  696. online_analyze.verbose = off
  697. online_analyze.min_interval = 10000.
  698. online_analyze.table_type = 'temporary'
  699. plantuner.fix_empty_table = on
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top