· 6 years ago · Jun 25, 2019, 10:34 AM
1login as: root
2root@10.7.1.211's password:
3Last login: Tue Jun 25 12:36:53 2019 from hq-oieb-08.rtc.local
4[root@dozor-test ~]# /opt/dozor/bin/shell
5ds-mode@dozor-test /opt/dozor # db-conn -a
6CONN_INDEX=0
7CONN_ID=1
8CONN_NAME=db-conn-1
9DBTYPE=pgsql
10USER=dozor
11PASS=q1
12HOST=127.0.0.1
13PORT=5434
14DBNAME=dozor
15
16CONN_INDEX=1
17CONN_ID=2
18CONN_NAME=db-conn-2
19DBTYPE=oracle
20USER=dozor
21PASS=q1
22TNS=dozor4
23
24ds-mode@dozor-test /opt/dozor # cat /data/base/db-conn-1/pg_hba.conf
25cat: /data/base/db-conn-1/pg_hba.conf: Нет такого файла или каталога
26ds-mode@dozor-test /opt/dozor # cat /data/base/dozor/pgsql/pg_hba.conf
27# PostgreSQL Client Authentication Configuration File
28# ===================================================
29#
30# Refer to the "Client Authentication" section in the PostgreSQL
31# documentation for a complete description of this file. A short
32# synopsis follows.
33#
34# This file controls: which hosts are allowed to connect, how clients
35# are authenticated, which PostgreSQL user names they can use, which
36# databases they can access. Records take one of these forms:
37#
38# local DATABASE USER METHOD [OPTIONS]
39# host DATABASE USER ADDRESS METHOD [OPTIONS]
40# hostssl DATABASE USER ADDRESS METHOD [OPTIONS]
41# hostnossl DATABASE USER ADDRESS METHOD [OPTIONS]
42#
43# (The uppercase items must be replaced by actual values.)
44#
45# The first field is the connection type: "local" is a Unix-domain
46# socket, "host" is either a plain or SSL-encrypted TCP/IP socket,
47# "hostssl" is an SSL-encrypted TCP/IP socket, and "hostnossl" is a
48# plain TCP/IP socket.
49#
50# DATABASE can be "all", "sameuser", "samerole", "replication", a
51# database name, or a comma-separated list thereof. The "all"
52# keyword does not match "replication". Access to replication
53# must be enabled in a separate record (see example below).
54#
55# USER can be "all", a user name, a group name prefixed with "+", or a
56# comma-separated list thereof. In both the DATABASE and USER fields
57# you can also write a file name prefixed with "@" to include names
58# from a separate file.
59#
60# ADDRESS specifies the set of hosts the record matches. It can be a
61# host name, or it is made up of an IP address and a CIDR mask that is
62# an integer (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that
63# specifies the number of significant bits in the mask. A host name
64# that starts with a dot (.) matches a suffix of the actual host name.
65# Alternatively, you can write an IP address and netmask in separate
66# columns to specify the set of hosts. Instead of a CIDR-address, you
67# can write "samehost" to match any of the server's own IP addresses,
68# or "samenet" to match any address in any subnet that the server is
69# directly connected to.
70#
71# METHOD can be "trust", "reject", "md5", "password", "gss", "sspi",
72# "ident", "peer", "pam", "ldap", "radius" or "cert". Note that
73# "password" sends passwords in clear text; "md5" is preferred since
74# it sends encrypted passwords.
75#
76# OPTIONS are a set of options for the authentication in the format
77# NAME=VALUE. The available options depend on the different
78# authentication methods -- refer to the "Client Authentication"
79# section in the documentation for a list of which options are
80# available for which authentication methods.
81#
82# Database and user names containing spaces, commas, quotes and other
83# special characters must be quoted. Quoting one of the keywords
84# "all", "sameuser", "samerole" or "replication" makes the name lose
85# its special character, and just match a database or username with
86# that name.
87#
88# This file is read on server startup and when the postmaster receives
89# a SIGHUP signal. If you edit the file on a running system, you have
90# to SIGHUP the postmaster for the changes to take effect. You can
91# use "pg_ctl reload" to do that.
92
93# Put your actual configuration here
94# ----------------------------------
95#
96# If you want to allow non-local connections, you need to add more
97# "host" records. In that case you will also need to make PostgreSQL
98# listen on a non-local interface via the listen_addresses
99# configuration parameter, or via the -i or -h command line switches.
100
101# CAUTION: Configuring the system for local "trust" authentication
102# allows any local user to connect as any PostgreSQL user, including
103# the database superuser. If you do not trust all your local users,
104# use another authentication method.
105
106
107# TYPE DATABASE USER ADDRESS METHOD
108
109# "local" is for Unix domain socket connections only
110local all all trust
111# IPv4 local connections:
112host all all 127.0.0.1/32 trust
113# IPv6 local connections:
114host all all ::1/128 trust
115# Allow replication connections from localhost, by a user with the
116# replication privilege.
117#local replication dozor trust
118#host replication dozor 127.0.0.1/32 trust
119#host replication dozor ::1/128 trust
120ds-mode@dozor-test /opt/dozor # cat /data/base/dozor/pgsql/postgresql.conf
121# -----------------------------
122# PostgreSQL configuration file
123# -----------------------------
124#
125# This file consists of lines of the form:
126#
127# name = value
128#
129# (The "=" is optional.) Whitespace may be used. Comments are introduced with
130# "#" anywhere on a line. The complete list of parameter names and allowed
131# values can be found in the PostgreSQL documentation.
132#
133# The commented-out settings shown in this file represent the default values.
134# Re-commenting a setting is NOT sufficient to revert it to the default value;
135# you need to reload the server.
136#
137# This file is read on server startup and when the server receives a SIGHUP
138# signal. If you edit the file on a running system, you have to SIGHUP the
139# server for the changes to take effect, or use "pg_ctl reload". Some
140# parameters, which are marked below, require a server shutdown and restart to
141# take effect.
142#
143# Any parameter can also be given as a command-line option to the server, e.g.,
144# "postgres -c log_connections=on". Some parameters can be changed at run time
145# with the "SET" SQL command.
146#
147# Memory units: kB = kilobytes Time units: ms = milliseconds
148# MB = megabytes s = seconds
149# GB = gigabytes min = minutes
150# TB = terabytes h = hours
151# d = days
152
153
154#------------------------------------------------------------------------------
155# FILE LOCATIONS
156#------------------------------------------------------------------------------
157
158# The default values of these variables are driven from the -D command-line
159# option or PGDATA environment variable, represented here as ConfigDir.
160
161#data_directory = 'ConfigDir' # use data in another directory
162 # (change requires restart)
163#hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file
164 # (change requires restart)
165#ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file
166 # (change requires restart)
167
168# If external_pid_file is not explicitly set, no extra PID file is written.
169#external_pid_file = '' # write an extra PID file
170 # (change requires restart)
171
172
173#------------------------------------------------------------------------------
174# CONNECTIONS AND AUTHENTICATION
175#------------------------------------------------------------------------------
176
177# - Connection Settings -
178
179listen_addresses = '0.0.0.0' # what IP address(es) to listen on;
180 # comma-separated list of addresses;
181 # defaults to 'localhost'; use '*' for all
182 # (change requires restart)
183port = 5434 # (change requires restart)
184max_connections = 100 # (change requires restart)
185#superuser_reserved_connections = 3 # (change requires restart)
186unix_socket_directories = '/tmp' # comma-separated list of directories
187 # (change requires restart)
188#unix_socket_group = '' # (change requires restart)
189#unix_socket_permissions = 0777 # begin with 0 to use octal notation
190 # (change requires restart)
191#bonjour = off # advertise server via Bonjour
192 # (change requires restart)
193#bonjour_name = '' # defaults to the computer name
194 # (change requires restart)
195
196# - Security and Authentication -
197
198#authentication_timeout = 1min # 1s-600s
199#ssl = off # (change requires restart)
200#ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers
201 # (change requires restart)
202#ssl_prefer_server_ciphers = on # (change requires restart)
203#ssl_ecdh_curve = 'prime256v1' # (change requires restart)
204#ssl_cert_file = 'server.crt' # (change requires restart)
205#ssl_key_file = 'server.key' # (change requires restart)
206#ssl_ca_file = '' # (change requires restart)
207#ssl_crl_file = '' # (change requires restart)
208#password_encryption = on
209#db_user_namespace = off
210#row_security = on
211
212# GSSAPI using Kerberos
213#krb_server_keyfile = ''
214#krb_caseins_users = off
215
216# - TCP Keepalives -
217# see "man 7 tcp" for details
218
219#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
220 # 0 selects the system default
221#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
222 # 0 selects the system default
223#tcp_keepalives_count = 0 # TCP_KEEPCNT;
224 # 0 selects the system default
225
226
227#------------------------------------------------------------------------------
228# RESOURCE USAGE (except WAL)
229#------------------------------------------------------------------------------
230
231# - Memory -
232
233shared_buffers = 128MB # min 128kB
234 # (change requires restart)
235#huge_pages = try # on, off, or try
236 # (change requires restart)
237#temp_buffers = 8MB # min 800kB
238#max_prepared_transactions = 0 # zero disables the feature
239 # (change requires restart)
240# Caution: it is not advisable to set max_prepared_transactions nonzero unless
241# you actively intend to use prepared transactions.
242work_mem = 10MB # min 64kB
243#maintenance_work_mem = 64MB # min 1MB
244#replacement_sort_tuples = 150000 # limits use of replacement selection sort
245#autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
246#max_stack_depth = 2MB # min 100kB
247dynamic_shared_memory_type = posix # the default is the first option
248 # supported by the operating system:
249 # posix
250 # sysv
251 # windows
252 # mmap
253 # use none to disable dynamic shared memory
254 # (change requires restart)
255
256# - Disk -
257
258#temp_file_limit = -1 # limits per-process temp file space
259 # in kB, or -1 for no limit
260
261# - Kernel Resource Usage -
262
263#max_files_per_process = 1000 # min 25
264 # (change requires restart)
265shared_preload_libraries = 'pg_stat_statements' # (change requires restart)
266
267# - Cost-Based Vacuum Delay -
268
269#vacuum_cost_delay = 0 # 0-100 milliseconds
270#vacuum_cost_page_hit = 1 # 0-10000 credits
271#vacuum_cost_page_miss = 10 # 0-10000 credits
272#vacuum_cost_page_dirty = 20 # 0-10000 credits
273#vacuum_cost_limit = 200 # 1-10000 credits
274
275# - Background Writer -
276
277#bgwriter_delay = 200ms # 10-10000ms between rounds
278#bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round
279#bgwriter_lru_multiplier = 2.0 # 0-10.0 multiplier on buffers scanned/round
280#bgwriter_flush_after = 512kB # measured in pages, 0 disables
281
282# - Asynchronous Behavior -
283
284#effective_io_concurrency = 1 # 1-1000; 0 disables prefetching
285#max_worker_processes = 8 # (change requires restart)
286#max_parallel_workers_per_gather = 0 # taken from max_worker_processes
287#old_snapshot_threshold = -1 # 1min-60d; -1 disables; 0 is immediate
288 # (change requires restart)
289#backend_flush_after = 0 # measured in pages, 0 disables
290
291
292#------------------------------------------------------------------------------
293# WRITE AHEAD LOG
294#------------------------------------------------------------------------------
295
296# - Settings -
297
298#wal_level = minimal # minimal, replica, or logical
299 # (change requires restart)
300#fsync = on # flush data to disk for crash safety
301 # (turning this off can cause
302 # unrecoverable data corruption)
303#synchronous_commit = on # synchronization level;
304 # off, local, remote_write, remote_apply, or on
305#wal_sync_method = fsync # the default is the first option
306 # supported by the operating system:
307 # open_datasync
308 # fdatasync (default on Linux)
309 # fsync
310 # fsync_writethrough
311 # open_sync
312#full_page_writes = on # recover from partial page writes
313#wal_compression = off # enable compression of full-page writes
314#wal_log_hints = off # also do full page writes of non-critical updates
315 # (change requires restart)
316#wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
317 # (change requires restart)
318#wal_writer_delay = 200ms # 1-10000 milliseconds
319#wal_writer_flush_after = 1MB # measured in pages, 0 disables
320
321#commit_delay = 0 # range 0-100000, in microseconds
322#commit_siblings = 5 # range 1-1000
323
324# - Checkpoints -
325
326#checkpoint_timeout = 5min # range 30s-1d
327#max_wal_size = 1GB
328#min_wal_size = 80MB
329#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
330#checkpoint_flush_after = 256kB # measured in pages, 0 disables
331#checkpoint_warning = 30s # 0 disables
332
333# - Archiving -
334
335#archive_mode = off # enables archiving; off, on, or always
336 # (change requires restart)
337#archive_command = '' # command to use to archive a logfile segment
338 # placeholders: %p = path of file to archive
339 # %f = file name only
340 # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
341#archive_timeout = 0 # force a logfile segment switch after this
342 # number of seconds; 0 disables
343
344
345#------------------------------------------------------------------------------
346# REPLICATION
347#------------------------------------------------------------------------------
348
349# - Sending Server(s) -
350
351# Set these on the master and on any standby that will send replication data.
352
353#max_wal_senders = 0 # max number of walsender processes
354 # (change requires restart)
355#wal_keep_segments = 0 # in logfile segments, 16MB each; 0 disables
356#wal_sender_timeout = 60s # in milliseconds; 0 disables
357
358#max_replication_slots = 0 # max number of replication slots
359 # (change requires restart)
360#track_commit_timestamp = off # collect timestamp of transaction commit
361 # (change requires restart)
362
363# - Master Server -
364
365# These settings are ignored on a standby server.
366
367#synchronous_standby_names = '' # standby servers that provide sync rep
368 # number of sync standbys and comma-separated list of application_name
369 # from standby(s); '*' = all
370#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
371
372# - Standby Servers -
373
374# These settings are ignored on a master server.
375
376#hot_standby = off # "on" allows queries during recovery
377 # (change requires restart)
378#max_standby_archive_delay = 30s # max delay before canceling queries
379 # when reading WAL from archive;
380 # -1 allows indefinite delay
381#max_standby_streaming_delay = 30s # max delay before canceling queries
382 # when reading streaming WAL;
383 # -1 allows indefinite delay
384#wal_receiver_status_interval = 10s # send replies at least this often
385 # 0 disables
386#hot_standby_feedback = off # send info from standby to prevent
387 # query conflicts
388#wal_receiver_timeout = 60s # time that receiver waits for
389 # communication from master
390 # in milliseconds; 0 disables
391#wal_retrieve_retry_interval = 5s # time to wait before retrying to
392 # retrieve WAL after a failed attempt
393
394
395#------------------------------------------------------------------------------
396# QUERY TUNING
397#------------------------------------------------------------------------------
398
399# - Planner Method Configuration -
400
401#enable_bitmapscan = on
402#enable_hashagg = on
403#enable_hashjoin = on
404#enable_indexscan = on
405#enable_indexonlyscan = on
406#enable_material = on
407#enable_mergejoin = on
408#enable_nestloop = on
409#enable_seqscan = on
410#enable_sort = on
411#enable_tidscan = on
412
413# - Planner Cost Constants -
414
415#seq_page_cost = 1.0 # measured on an arbitrary scale
416#random_page_cost = 4.0 # same scale as above
417#cpu_tuple_cost = 0.01 # same scale as above
418#cpu_index_tuple_cost = 0.005 # same scale as above
419#cpu_operator_cost = 0.0025 # same scale as above
420#parallel_tuple_cost = 0.1 # same scale as above
421#parallel_setup_cost = 1000.0 # same scale as above
422#min_parallel_relation_size = 8MB
423#effective_cache_size = 4GB
424
425# - Genetic Query Optimizer -
426
427#geqo = on
428#geqo_threshold = 12
429#geqo_effort = 5 # range 1-10
430#geqo_pool_size = 0 # selects default based on effort
431#geqo_generations = 0 # selects default based on effort
432#geqo_selection_bias = 2.0 # range 1.5-2.0
433#geqo_seed = 0.0 # range 0.0-1.0
434
435# - Other Planner Options -
436
437#default_statistics_target = 100 # range 1-10000
438#constraint_exclusion = partition # on, off, or partition
439#cursor_tuple_fraction = 0.1 # range 0.0-1.0
440#from_collapse_limit = 8
441#join_collapse_limit = 8 # 1 disables collapsing of explicit
442 # JOIN clauses
443#force_parallel_mode = off
444
445
446#------------------------------------------------------------------------------
447# ERROR REPORTING AND LOGGING
448#------------------------------------------------------------------------------
449
450# - Where to Log -
451
452log_destination = 'stderr' # Valid values are combinations of
453 # stderr, csvlog, syslog, and eventlog,
454 # depending on platform. csvlog
455 # requires logging_collector to be on.
456
457# This is used when logging to stderr:
458#logging_collector = on # Enable capturing of stderr and csvlog
459 # into log files. Required to be on for
460 # csvlogs.
461 # (change requires restart)
462
463# These are only used if logging_collector is on:
464log_directory = 'pg_log' # directory where log files are written,
465 # can be absolute or relative to PGDATA
466log_filename = 'postgresql-%a.log' # log file name pattern,
467 # can include strftime() escapes
468#log_file_mode = 0600 # creation mode for log files,
469 # begin with 0 to use octal notation
470log_truncate_on_rotation = on # If on, an existing log file with the
471 # same name as the new log file will be
472 # truncated rather than appended to.
473 # But such truncation only occurs on
474 # time-driven rotation, not on restarts
475 # or size-driven rotation. Default is
476 # off, meaning append to existing files
477 # in all cases.
478log_rotation_age = 1d # Automatic rotation of logfiles will
479 # happen after that time. 0 disables.
480log_rotation_size = 0 # Automatic rotation of logfiles will
481 # happen after that much log output.
482 # 0 disables.
483
484# These are relevant when logging to syslog:
485#syslog_facility = 'LOCAL0'
486#syslog_ident = 'postgres'
487#syslog_sequence_numbers = on
488#syslog_split_messages = on
489
490# This is only relevant when logging to eventlog (win32):
491# (change requires restart)
492#event_source = 'PostgreSQL'
493
494# - When to Log -
495
496#client_min_messages = notice # values in order of decreasing detail:
497 # debug5
498 # debug4
499 # debug3
500 # debug2
501 # debug1
502 # log
503 # notice
504 # warning
505 # error
506
507#log_min_messages = warning # values in order of decreasing detail:
508 # debug5
509 # debug4
510 # debug3
511 # debug2
512 # debug1
513 # info
514 # notice
515 # warning
516 # error
517 # log
518 # fatal
519 # panic
520
521#log_min_error_statement = error # values in order of decreasing detail:
522 # debug5
523 # debug4
524 # debug3
525 # debug2
526 # debug1
527 # info
528 # notice
529 # warning
530 # error
531 # log
532 # fatal
533 # panic (effectively off)
534
535#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
536 # and their durations, > 0 logs only
537 # statements running at least this number
538 # of milliseconds
539
540
541# - What to Log -
542
543#debug_print_parse = off
544#debug_print_rewritten = off
545#debug_print_plan = off
546#debug_pretty_print = on
547#log_checkpoints = off
548#log_connections = off
549#log_disconnections = off
550#log_duration = off
551#log_error_verbosity = default # terse, default, or verbose messages
552#log_hostname = off
553#log_line_prefix = '< %m > ' # special values:
554 # %a = application name
555 # %u = user name
556 # %d = database name
557 # %r = remote host and port
558 # %h = remote host
559 # %p = process ID
560 # %t = timestamp without milliseconds
561 # %m = timestamp with milliseconds
562 # %n = timestamp with milliseconds (as a Unix epoch)
563 # %i = command tag
564 # %e = SQL state
565 # %c = session ID
566 # %l = session line number
567 # %s = session start timestamp
568 # %v = virtual transaction ID
569 # %x = transaction ID (0 if none)
570 # %q = stop here in non-session
571 # processes
572 # %% = '%'
573 # e.g. '<%u%%%d> '
574#log_lock_waits = off # log lock waits >= deadlock_timeout
575#log_statement = 'none' # none, ddl, mod, all
576#log_replication_commands = off
577#log_temp_files = -1 # log temporary files equal or larger
578 # than the specified size in kilobytes;
579 # -1 disables, 0 logs all temp files
580log_timezone = 'W-SU'
581
582
583# - Process Title -
584
585#cluster_name = '' # added to process titles if nonempty
586 # (change requires restart)
587#update_process_title = on
588
589
590#------------------------------------------------------------------------------
591# RUNTIME STATISTICS
592#------------------------------------------------------------------------------
593
594# - Query/Index Statistics Collector -
595
596#track_activities = on
597#track_counts = on
598#track_io_timing = off
599#track_functions = none # none, pl, all
600#track_activity_query_size = 1024 # (change requires restart)
601#stats_temp_directory = 'pg_stat_tmp'
602
603
604# - Statistics Monitoring -
605
606#log_parser_stats = off
607#log_planner_stats = off
608#log_executor_stats = off
609#log_statement_stats = off
610
611
612#------------------------------------------------------------------------------
613# AUTOVACUUM PARAMETERS
614#------------------------------------------------------------------------------
615
616#autovacuum = on # Enable autovacuum subprocess? 'on'
617 # requires track_counts to also be on.
618#log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
619 # their durations, > 0 logs only
620 # actions running at least this number
621 # of milliseconds.
622#autovacuum_max_workers = 3 # max number of autovacuum subprocesses
623 # (change requires restart)
624#autovacuum_naptime = 1min # time between autovacuum runs
625#autovacuum_vacuum_threshold = 50 # min number of row updates before
626 # vacuum
627#autovacuum_analyze_threshold = 50 # min number of row updates before
628 # analyze
629#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
630#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
631#autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
632 # (change requires restart)
633#autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age
634 # before forced vacuum
635 # (change requires restart)
636#autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for
637 # autovacuum, in milliseconds;
638 # -1 means use vacuum_cost_delay
639#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
640 # autovacuum, -1 means use
641 # vacuum_cost_limit
642
643
644#------------------------------------------------------------------------------
645# CLIENT CONNECTION DEFAULTS
646#------------------------------------------------------------------------------
647
648# - Statement Behavior -
649
650#search_path = '"$user", public' # schema names
651#default_tablespace = '' # a tablespace name, '' uses the default
652#temp_tablespaces = '' # a list of tablespace names, '' uses
653 # only default tablespace
654#check_function_bodies = on
655#default_transaction_isolation = 'read committed'
656#default_transaction_read_only = off
657#default_transaction_deferrable = off
658#session_replication_role = 'origin'
659#statement_timeout = 0 # in milliseconds, 0 is disabled
660#lock_timeout = 0 # in milliseconds, 0 is disabled
661#idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled
662#vacuum_freeze_min_age = 50000000
663#vacuum_freeze_table_age = 150000000
664#vacuum_multixact_freeze_min_age = 5000000
665#vacuum_multixact_freeze_table_age = 150000000
666#bytea_output = 'hex' # hex, escape
667#xmlbinary = 'base64'
668#xmloption = 'content'
669#gin_fuzzy_search_limit = 0
670#gin_pending_list_limit = 4MB
671
672# - Locale and Formatting -
673
674datestyle = 'iso, dmy'
675#intervalstyle = 'postgres'
676timezone = 'W-SU'
677#timezone_abbreviations = 'Default' # Select the set of available time zone
678 # abbreviations. Currently, there are
679 # Default
680 # Australia (historical usage)
681 # India
682 # You can create your own file in
683 # share/timezonesets/.
684#extra_float_digits = 0 # min -15, max 3
685#client_encoding = sql_ascii # actually, defaults to database
686 # encoding
687
688# These settings are initialized by initdb, but they can be changed.
689lc_messages = 'C' # locale for system error message
690 # strings
691lc_monetary = 'ru_RU.UTF-8' # locale for monetary formatting
692lc_numeric = 'ru_RU.UTF-8' # locale for number formatting
693lc_time = 'ru_RU.UTF-8' # locale for time formatting
694
695# default configuration for text search
696default_text_search_config = 'pg_catalog.russian'
697
698# - Other Defaults -
699
700#dynamic_library_path = '$libdir'
701#local_preload_libraries = ''
702#session_preload_libraries = ''
703
704
705#------------------------------------------------------------------------------
706# LOCK MANAGEMENT
707#------------------------------------------------------------------------------
708
709#deadlock_timeout = 1s
710#max_locks_per_transaction = 64 # min 10
711 # (change requires restart)
712#max_pred_locks_per_transaction = 64 # min 10
713 # (change requires restart)
714
715
716#------------------------------------------------------------------------------
717# VERSION/PLATFORM COMPATIBILITY
718#------------------------------------------------------------------------------
719
720# - Previous PostgreSQL Versions -
721
722#array_nulls = on
723#backslash_quote = safe_encoding # on, off, or safe_encoding
724#default_with_oids = off
725#escape_string_warning = on
726#lo_compat_privileges = off
727#operator_precedence_warning = off
728#quote_all_identifiers = off
729#sql_inheritance = on
730#standard_conforming_strings = on
731#synchronize_seqscans = on
732
733# - Other Platforms and Clients -
734
735#transform_null_equals = off
736
737
738#------------------------------------------------------------------------------
739# ERROR HANDLING
740#------------------------------------------------------------------------------
741
742#exit_on_error = off # terminate session on any error?
743#restart_after_crash = on # reinitialize after backend crash?
744
745
746#------------------------------------------------------------------------------
747# CONFIG FILE INCLUDES
748#------------------------------------------------------------------------------
749
750# These options allow settings to be loaded from files other than the
751# default postgresql.conf.
752
753#include_dir = 'conf.d' # include files ending in '.conf' from
754 # directory 'conf.d'
755#include_if_exists = 'exists.conf' # include file only if it exists
756#include = 'special.conf' # include file
757
758
759#------------------------------------------------------------------------------
760# CUSTOMIZED OPTIONS
761#------------------------------------------------------------------------------
762
763# Add settings for extensions here
764pg_stat_statements.max = 10000
765pg_stat_statements.track = all
766ds-mode@dozor-test /opt/dozor # postgresql.confpostgresql.conf