123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691 |
- # -----------------------------
- # PostgreSQL configuration file
- # -----------------------------
- #
- # This file consists of lines of the form:
- #
- # name = value
- #
- # (The "=" is optional.) Whitespace may be used. Comments are introduced with
- # "#" anywhere on a line. The complete list of parameter names and allowed
- # values can be found in the PostgreSQL documentation.
- #
- # The commented-out settings shown in this file represent the default values.
- # Re-commenting a setting is NOT sufficient to revert it to the default value;
- # you need to reload the server.
- #
- # This file is read on server startup and when the server receives a SIGHUP
- # signal. If you edit the file on a running system, you have to SIGHUP the
- # server for the changes to take effect, run "pg_ctl reload", or execute
- # "SELECT pg_reload_conf()". Some parameters, which are marked below,
- # require a server shutdown and restart to take effect.
- #
- # Any parameter can also be given as a command-line option to the server, e.g.,
- # "postgres -c log_connections=on". Some parameters can be changed at run time
- # with the "SET" SQL command.
- #
- # Memory units: kB = kilobytes Time units: ms = milliseconds
- # MB = megabytes s = seconds
- # GB = gigabytes min = minutes
- # TB = terabytes h = hours
- # d = days
-
-
- #------------------------------------------------------------------------------
- # FILE LOCATIONS
- #------------------------------------------------------------------------------
-
- # The default values of these variables are driven from the -D command-line
- # option or PGDATA environment variable, represented here as ConfigDir.
-
- data_directory = '/var/lib/postgresql/11/main' # use data in another directory
- # (change requires restart)
- hba_file = '/etc/postgresql/11/main/pg_hba.conf' # host-based authentication file
- # (change requires restart)
- ident_file = '/etc/postgresql/11/main/pg_ident.conf' # ident configuration file
- # (change requires restart)
-
- # If external_pid_file is not explicitly set, no extra PID file is written.
- external_pid_file = '/var/run/postgresql/11-main.pid' # write an extra PID file
- # (change requires restart)
-
-
- #------------------------------------------------------------------------------
- # CONNECTIONS AND AUTHENTICATION
- #------------------------------------------------------------------------------
-
- # - Connection Settings -
-
- #listen_addresses = 'localhost'
- # comma-separated list of addresses;
- # defaults to 'localhost'; use '*' for all
- # (change requires restart)
- port = 5432 # (change requires restart)
- max_connections = 100 # (change requires restart)
- #superuser_reserved_connections = 3
- unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
- # (change requires restart)
- #unix_socket_group = ''
- #unix_socket_permissions = 0777
- # (change requires restart)
- #bonjour = off
- # (change requires restart)
- #bonjour_name = ''
- # (change requires restart)
-
- # - TCP Keepalives -
- # see "man 7 tcp" for details
-
- #tcp_keepalives_idle = 0
- # 0 selects the system default
- #tcp_keepalives_interval = 0
- # 0 selects the system default
- #tcp_keepalives_count = 0
- # 0 selects the system default
-
- # - Authentication -
-
- #authentication_timeout = 1min
- #password_encryption = md5
- #db_user_namespace = off
-
- # GSSAPI using Kerberos
- #krb_server_keyfile = ''
- #krb_caseins_users = off
-
- # - SSL -
-
- #ssl = on
- #ssl_ca_file = ''
- #ssl_cert_file = '/etc/ssl/certs/ssl-cert-snakeoil.pem'
- #ssl_crl_file = ''
- #ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key'
- #ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL'
- #ssl_prefer_server_ciphers = on
- #ssl_ecdh_curve = 'prime256v1'
- #ssl_dh_params_file = ''
- #ssl_passphrase_command = ''
- #ssl_passphrase_command_supports_reload = off
-
-
- #------------------------------------------------------------------------------
- # RESOURCE USAGE (except WAL)
- #------------------------------------------------------------------------------
-
- # - Memory -
-
- shared_buffers = 128MB # min 128kB
- # (change requires restart)
- #huge_pages = try
- # (change requires restart)
- #temp_buffers = 8MB
- #max_prepared_transactions = 0
- # (change requires restart)
- # Caution: it is not advisable to set max_prepared_transactions nonzero unless
- # you actively intend to use prepared transactions.
- #work_mem = 4MB
- #maintenance_work_mem = 64MB
- #autovacuum_work_mem = -1
- #max_stack_depth = 2MB
- dynamic_shared_memory_type = posix # the default is the first option
- # supported by the operating system:
- # posix
- # sysv
- # windows
- # mmap
- # use none to disable dynamic shared memory
- # (change requires restart)
-
- # - Disk -
-
- #temp_file_limit = -1
- # in kB, or -1 for no limit
-
- # - Kernel Resources -
-
- #max_files_per_process = 1000
- # (change requires restart)
-
- # - Cost-Based Vacuum Delay -
-
- #vacuum_cost_delay = 0
- #vacuum_cost_page_hit = 1
- #vacuum_cost_page_miss = 10
- #vacuum_cost_page_dirty = 20
- #vacuum_cost_limit = 200
-
- # - Background Writer -
-
- #bgwriter_delay = 200ms
- #bgwriter_lru_maxpages = 100
- #bgwriter_lru_multiplier = 2.0
- #bgwriter_flush_after = 512kB
-
- # - Asynchronous Behavior -
-
- #effective_io_concurrency = 1
- #max_worker_processes = 8
- #max_parallel_maintenance_workers = 2
- #max_parallel_workers_per_gather = 2
- #parallel_leader_participation = on
- #max_parallel_workers = 8
- # can be used in parallel operations
- #old_snapshot_threshold = -1
- # (change requires restart)
- #backend_flush_after = 0
-
-
- #------------------------------------------------------------------------------
- # WRITE-AHEAD LOG
- #------------------------------------------------------------------------------
-
- # - Settings -
-
- #wal_level = replica
- # (change requires restart)
- #fsync = on
- # (turning this off can cause
- # unrecoverable data corruption)
- #synchronous_commit = on
- # off, local, remote_write, remote_apply, or on
- #wal_sync_method = fsync
- # supported by the operating system:
- # open_datasync
- # fdatasync (default on Linux and FreeBSD)
- # fsync
- # fsync_writethrough
- # open_sync
- #full_page_writes = on
- #wal_compression = off
- #wal_log_hints = off
- # (change requires restart)
- #wal_buffers = -1
- # (change requires restart)
- #wal_writer_delay = 200ms
- #wal_writer_flush_after = 1MB
-
- #commit_delay = 0
- #commit_siblings = 5
-
- # - Checkpoints -
-
- #checkpoint_timeout = 5min
- max_wal_size = 1GB
- min_wal_size = 80MB
- #checkpoint_completion_target = 0.5
- #checkpoint_flush_after = 256kB
- #checkpoint_warning = 30s
-
- # - Archiving -
-
- #archive_mode = off
- # (change requires restart)
- #archive_command = ''
- # placeholders: %p = path of file to archive
- # %f = file name only
- # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
- #archive_timeout = 0
- # number of seconds; 0 disables
-
-
- #------------------------------------------------------------------------------
- # REPLICATION
- #------------------------------------------------------------------------------
-
- # - Sending Servers -
-
- # Set these on the master and on any standby that will send replication data.
-
- #max_wal_senders = 10
- # (change requires restart)
- #wal_keep_segments = 0
- #wal_sender_timeout = 60s
-
- #max_replication_slots = 10
- # (change requires restart)
- #track_commit_timestamp = off
- # (change requires restart)
-
- # - Master Server -
-
- # These settings are ignored on a standby server.
-
- #synchronous_standby_names = ''
- # method to choose sync standbys, number of sync standbys,
- # and comma-separated list of application_name
- # from standby(s); '*' = all
- #vacuum_defer_cleanup_age = 0
-
- # - Standby Servers -
-
- # These settings are ignored on a master server.
-
- #hot_standby = on
- # (change requires restart)
- #max_standby_archive_delay = 30s
- # when reading WAL from archive;
- # -1 allows indefinite delay
- #max_standby_streaming_delay = 30s
- # when reading streaming WAL;
- # -1 allows indefinite delay
- #wal_receiver_status_interval = 10s
- # 0 disables
- #hot_standby_feedback = off
- # query conflicts
- #wal_receiver_timeout = 60s
- # communication from master
- # in milliseconds; 0 disables
- #wal_retrieve_retry_interval = 5s
- # retrieve WAL after a failed attempt
-
- # - Subscribers -
-
- # These settings are ignored on a publisher.
-
- #max_logical_replication_workers = 4
- # (change requires restart)
- #max_sync_workers_per_subscription = 2
-
-
- #------------------------------------------------------------------------------
- # QUERY TUNING
- #------------------------------------------------------------------------------
-
- # - Planner Method Configuration -
-
- #enable_bitmapscan = on
- #enable_hashagg = on
- #enable_hashjoin = on
- #enable_indexscan = on
- #enable_indexonlyscan = on
- #enable_material = on
- #enable_mergejoin = on
- #enable_nestloop = on
- #enable_parallel_append = on
- #enable_seqscan = on
- #enable_sort = on
- #enable_tidscan = on
- #enable_partitionwise_join = off
- #enable_partitionwise_aggregate = off
- #enable_parallel_hash = on
- #enable_partition_pruning = on
-
- # - Planner Cost Constants -
-
- #seq_page_cost = 1.0
- #random_page_cost = 4.0
- #cpu_tuple_cost = 0.01
- #cpu_index_tuple_cost = 0.005
- #cpu_operator_cost = 0.0025
- #parallel_tuple_cost = 0.1
- #parallel_setup_cost = 1000.0
-
- #jit_above_cost = 100000
- # and query more expensive than this;
- # -1 disables
- #jit_inline_above_cost = 500000
- # more expensive than this; -1 disables
- #jit_optimize_above_cost = 500000
- # query is more expensive than this;
- # -1 disables
-
- #min_parallel_table_scan_size = 8MB
- #min_parallel_index_scan_size = 512kB
- #effective_cache_size = 4GB
-
- # - Genetic Query Optimizer -
-
- #geqo = on
- #geqo_threshold = 12
- #geqo_effort = 5
- #geqo_pool_size = 0
- #geqo_generations = 0
- #geqo_selection_bias = 2.0
- #geqo_seed = 0.0
-
- # - Other Planner Options -
-
- #default_statistics_target = 100
- #constraint_exclusion = partition
- #cursor_tuple_fraction = 0.1
- #from_collapse_limit = 8
- #join_collapse_limit = 8
- # JOIN clauses
- #force_parallel_mode = off
- #jit = off
-
-
- #------------------------------------------------------------------------------
- # REPORTING AND LOGGING
- #------------------------------------------------------------------------------
-
- # - Where to Log -
-
- #log_destination = 'stderr'
- # stderr, csvlog, syslog, and eventlog,
- # depending on platform. csvlog
- # requires logging_collector to be on.
-
- # This is used when logging to stderr:
- #logging_collector = off
- # into log files. Required to be on for
- # csvlogs.
- # (change requires restart)
-
- # These are only used if logging_collector is on:
- #log_directory = 'log'
- # can be absolute or relative to PGDATA
- #log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'
- # can include strftime() escapes
- #log_file_mode = 0600
- # begin with 0 to use octal notation
- #log_truncate_on_rotation = off
- # same name as the new log file will be
- # truncated rather than appended to.
- # But such truncation only occurs on
- # time-driven rotation, not on restarts
- # or size-driven rotation. Default is
- # off, meaning append to existing files
- # in all cases.
- #log_rotation_age = 1d
- # happen after that time. 0 disables.
- #log_rotation_size = 10MB
- # happen after that much log output.
- # 0 disables.
-
- # These are relevant when logging to syslog:
- #syslog_facility = 'LOCAL0'
- #syslog_ident = 'postgres'
- #syslog_sequence_numbers = on
- #syslog_split_messages = on
-
- # This is only relevant when logging to eventlog (win32):
- # (change requires restart)
- #event_source = 'PostgreSQL'
-
- # - When to Log -
-
- #log_min_messages = warning
- # debug5
- # debug4
- # debug3
- # debug2
- # debug1
- # info
- # notice
- # warning
- # error
- # log
- # fatal
- # panic
-
- #log_min_error_statement = error
- # debug5
- # debug4
- # debug3
- # debug2
- # debug1
- # info
- # notice
- # warning
- # error
- # log
- # fatal
- # panic (effectively off)
-
- #log_min_duration_statement = -1
- # and their durations, > 0 logs only
- # statements running at least this number
- # of milliseconds
-
-
- # - What to Log -
-
- #debug_print_parse = off
- #debug_print_rewritten = off
- #debug_print_plan = off
- #debug_pretty_print = on
- #log_checkpoints = off
- #log_connections = off
- #log_disconnections = off
- #log_duration = off
- #log_error_verbosity = default
- #log_hostname = off
- log_line_prefix = '%m [%p] %q%u@%d ' # special values:
- # %a = application name
- # %u = user name
- # %d = database name
- # %r = remote host and port
- # %h = remote host
- # %p = process ID
- # %t = timestamp without milliseconds
- # %m = timestamp with milliseconds
- # %n = timestamp with milliseconds (as a Unix epoch)
- # %i = command tag
- # %e = SQL state
- # %c = session ID
- # %l = session line number
- # %s = session start timestamp
- # %v = virtual transaction ID
- # %x = transaction ID (0 if none)
- # %q = stop here in non-session
- # processes
- # %% = '%'
- # e.g. '<%u%%%d> '
- #log_lock_waits = off
- #log_statement = 'none'
- #log_replication_commands = off
- #log_temp_files = -1
- # than the specified size in kilobytes;
- # -1 disables, 0 logs all temp files
- log_timezone = 'Etc/UTC'
-
- #------------------------------------------------------------------------------
- # PROCESS TITLE
- #------------------------------------------------------------------------------
-
- cluster_name = '11/main' # added to process titles if nonempty
- # (change requires restart)
- #update_process_title = on
-
-
- #------------------------------------------------------------------------------
- # STATISTICS
- #------------------------------------------------------------------------------
-
- # - Query and Index Statistics Collector -
-
- #track_activities = on
- #track_counts = on
- #track_io_timing = off
- #track_functions = none
- #track_activity_query_size = 1024
- stats_temp_directory = '/var/run/postgresql/11-main.pg_stat_tmp'
-
-
- # - Monitoring -
-
- #log_parser_stats = off
- #log_planner_stats = off
- #log_executor_stats = off
- #log_statement_stats = off
-
-
- #------------------------------------------------------------------------------
- # AUTOVACUUM
- #------------------------------------------------------------------------------
-
- #autovacuum = on
- # requires track_counts to also be on.
- #log_autovacuum_min_duration = -1
- # their durations, > 0 logs only
- # actions running at least this number
- # of milliseconds.
- #autovacuum_max_workers = 3
- # (change requires restart)
- #autovacuum_naptime = 1min
- #autovacuum_vacuum_threshold = 50
- # vacuum
- #autovacuum_analyze_threshold = 50
- # analyze
- #autovacuum_vacuum_scale_factor = 0.2
- #autovacuum_analyze_scale_factor = 0.1
- #autovacuum_freeze_max_age = 200000000
- # (change requires restart)
- #autovacuum_multixact_freeze_max_age = 400000000
- # before forced vacuum
- # (change requires restart)
- #autovacuum_vacuum_cost_delay = 20ms
- # autovacuum, in milliseconds;
- # -1 means use vacuum_cost_delay
- #autovacuum_vacuum_cost_limit = -1
- # autovacuum, -1 means use
- # vacuum_cost_limit
-
-
- #------------------------------------------------------------------------------
- # CLIENT CONNECTION DEFAULTS
- #------------------------------------------------------------------------------
-
- # - Statement Behavior -
-
- #client_min_messages = notice
- # debug5
- # debug4
- # debug3
- # debug2
- # debug1
- # log
- # notice
- # warning
- # error
- #search_path = '"$user", public'
- #row_security = on
- #default_tablespace = ''
- #temp_tablespaces = ''
- # only default tablespace
- #check_function_bodies = on
- #default_transaction_isolation = 'read committed'
- #default_transaction_read_only = off
- #default_transaction_deferrable = off
- #session_replication_role = 'origin'
- #statement_timeout = 0
- #lock_timeout = 0
- #idle_in_transaction_session_timeout = 0
- #vacuum_freeze_min_age = 50000000
- #vacuum_freeze_table_age = 150000000
- #vacuum_multixact_freeze_min_age = 5000000
- #vacuum_multixact_freeze_table_age = 150000000
- #vacuum_cleanup_index_scale_factor = 0.1
- # before index cleanup, 0 always performs
- # index cleanup
- #bytea_output = 'hex'
- #xmlbinary = 'base64'
- #xmloption = 'content'
- #gin_fuzzy_search_limit = 0
- #gin_pending_list_limit = 4MB
-
- # - Locale and Formatting -
-
- datestyle = 'iso, mdy'
- #intervalstyle = 'postgres'
- timezone = 'Etc/UTC'
- #timezone_abbreviations = 'Default'
- # abbreviations. Currently, there are
- # Default
- # Australia (historical usage)
- # India
- # You can create your own file in
- # share/timezonesets/.
- #extra_float_digits = 0
- #client_encoding = sql_ascii
- # encoding
-
- # These settings are initialized by initdb, but they can be changed.
- lc_messages = 'en_US.UTF-8' # locale for system error message
- # strings
- lc_monetary = 'en_US.UTF-8' # locale for monetary formatting
- lc_numeric = 'en_US.UTF-8' # locale for number formatting
- lc_time = 'en_US.UTF-8' # locale for time formatting
-
- # default configuration for text search
- default_text_search_config = 'pg_catalog.english'
-
- # - Shared Library Preloading -
-
- #shared_preload_libraries = ''
- #local_preload_libraries = ''
- #session_preload_libraries = ''
- #jit_provider = 'llvmjit'
-
- # - Other Defaults -
-
- #dynamic_library_path = '$libdir'
-
-
- #------------------------------------------------------------------------------
- # LOCK MANAGEMENT
- #------------------------------------------------------------------------------
-
- #deadlock_timeout = 1s
- #max_locks_per_transaction = 64
- # (change requires restart)
- #max_pred_locks_per_transaction = 64
- # (change requires restart)
- #max_pred_locks_per_relation = -2
- # (max_pred_locks_per_transaction
- # / -max_pred_locks_per_relation) - 1
- #max_pred_locks_per_page = 2
-
-
- #------------------------------------------------------------------------------
- # VERSION AND PLATFORM COMPATIBILITY
- #------------------------------------------------------------------------------
-
- # - Previous PostgreSQL Versions -
-
- #array_nulls = on
- #backslash_quote = safe_encoding
- #default_with_oids = off
- #escape_string_warning = on
- #lo_compat_privileges = off
- #operator_precedence_warning = off
- #quote_all_identifiers = off
- #standard_conforming_strings = on
- #synchronize_seqscans = on
-
- # - Other Platforms and Clients -
-
- #transform_null_equals = off
-
-
- #------------------------------------------------------------------------------
- # ERROR HANDLING
- #------------------------------------------------------------------------------
-
- #exit_on_error = off
- #restart_after_crash = on
- #data_sync_retry = off
- # data?
- # (change requires restart)
-
-
- #------------------------------------------------------------------------------
- # CONFIG FILE INCLUDES
- #------------------------------------------------------------------------------
-
- # These options allow settings to be loaded from files other than the
- # default postgresql.conf. Note that these are directives, not variable
- # assignments, so they can usefully be given more than once.
-
- include_dir = 'conf.d' # include files ending in '.conf' from
- # a directory, e.g., 'conf.d'
- #include_if_exists = '...'
- #include = '...'
-
-
- #------------------------------------------------------------------------------
- # CUSTOMIZED OPTIONS
- #------------------------------------------------------------------------------
-
- # Add settings for extensions here
|