Advertisement
Guest User

Untitled

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