Advertisement
vheathen

postgresql.conf 1C problems

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