mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2025-08-19 11:27:47 -04:00
update postgresql.conf
This commit is contained in:
parent
728adaabae
commit
e46c8db149
1 changed files with 52 additions and 30 deletions
|
@ -93,7 +93,6 @@ max_connections = 100 # (change requires restart)
|
||||||
#authentication_timeout = 1min # 1s-600s
|
#authentication_timeout = 1min # 1s-600s
|
||||||
#password_encryption = scram-sha-256 # scram-sha-256 or md5
|
#password_encryption = scram-sha-256 # scram-sha-256 or md5
|
||||||
#scram_iterations = 4096
|
#scram_iterations = 4096
|
||||||
#db_user_namespace = off
|
|
||||||
|
|
||||||
# GSSAPI using Kerberos
|
# GSSAPI using Kerberos
|
||||||
#krb_server_keyfile = 'FILE:${sysconfdir}/krb5.keytab'
|
#krb_server_keyfile = 'FILE:${sysconfdir}/krb5.keytab'
|
||||||
|
@ -137,8 +136,8 @@ shared_buffers = 512MB # min 128kB
|
||||||
# you actively intend to use prepared transactions.
|
# you actively intend to use prepared transactions.
|
||||||
#work_mem = 4MB # min 64kB
|
#work_mem = 4MB # min 64kB
|
||||||
#hash_mem_multiplier = 2.0 # 1-1000.0 multiplier on hash table work_mem
|
#hash_mem_multiplier = 2.0 # 1-1000.0 multiplier on hash table work_mem
|
||||||
#maintenance_work_mem = 64MB # min 1MB
|
#maintenance_work_mem = 64MB # min 64kB
|
||||||
#autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
|
#autovacuum_work_mem = -1 # min 64kB, or -1 to use maintenance_work_mem
|
||||||
#logical_decoding_work_mem = 64MB # min 64kB
|
#logical_decoding_work_mem = 64MB # min 64kB
|
||||||
#max_stack_depth = 2MB # min 100kB
|
#max_stack_depth = 2MB # min 100kB
|
||||||
#shared_memory_type = mmap # the default is the first option
|
#shared_memory_type = mmap # the default is the first option
|
||||||
|
@ -155,15 +154,27 @@ dynamic_shared_memory_type = posix # the default is usually the first option
|
||||||
# mmap
|
# mmap
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
#min_dynamic_shared_memory = 0MB # (change requires restart)
|
#min_dynamic_shared_memory = 0MB # (change requires restart)
|
||||||
#vacuum_buffer_usage_limit = 256kB # size of vacuum and analyze buffer access strategy ring;
|
#vacuum_buffer_usage_limit = 2MB # size of vacuum and analyze buffer access strategy ring;
|
||||||
# 0 to disable vacuum buffer access strategy;
|
# 0 to disable vacuum buffer access strategy;
|
||||||
# range 128kB to 16GB
|
# range 128kB to 16GB
|
||||||
|
|
||||||
|
# SLRU buffers (change requires restart)
|
||||||
|
#commit_timestamp_buffers = 0 # memory for pg_commit_ts (0 = auto)
|
||||||
|
#multixact_offset_buffers = 16 # memory for pg_multixact/offsets
|
||||||
|
#multixact_member_buffers = 32 # memory for pg_multixact/members
|
||||||
|
#notify_buffers = 16 # memory for pg_notify
|
||||||
|
#serializable_buffers = 32 # memory for pg_serial
|
||||||
|
#subtransaction_buffers = 0 # memory for pg_subtrans (0 = auto)
|
||||||
|
#transaction_buffers = 0 # memory for pg_xact (0 = auto)
|
||||||
|
|
||||||
# - Disk -
|
# - Disk -
|
||||||
|
|
||||||
#temp_file_limit = -1 # limits per-process temp file space
|
#temp_file_limit = -1 # limits per-process temp file space
|
||||||
# in kilobytes, or -1 for no limit
|
# in kilobytes, or -1 for no limit
|
||||||
|
|
||||||
|
#max_notify_queue_pages = 1048576 # limits the number of SLRU pages allocated
|
||||||
|
# for NOTIFY / LISTEN queue
|
||||||
|
|
||||||
# - Kernel Resources -
|
# - Kernel Resources -
|
||||||
|
|
||||||
#max_files_per_process = 1000 # min 64
|
#max_files_per_process = 1000 # min 64
|
||||||
|
@ -189,14 +200,13 @@ dynamic_shared_memory_type = posix # the default is usually the first option
|
||||||
#backend_flush_after = 0 # measured in pages, 0 disables
|
#backend_flush_after = 0 # measured in pages, 0 disables
|
||||||
effective_io_concurrency = 200 # 1-1000; 0 disables prefetching
|
effective_io_concurrency = 200 # 1-1000; 0 disables prefetching
|
||||||
#maintenance_io_concurrency = 10 # 1-1000; 0 disables prefetching
|
#maintenance_io_concurrency = 10 # 1-1000; 0 disables prefetching
|
||||||
|
#io_combine_limit = 128kB # usually 1-32 blocks (depends on OS)
|
||||||
max_worker_processes = 4 # (change requires restart)
|
max_worker_processes = 4 # (change requires restart)
|
||||||
#max_parallel_workers_per_gather = 2 # taken from max_parallel_workers
|
#max_parallel_workers_per_gather = 2 # limited by max_parallel_workers
|
||||||
#max_parallel_maintenance_workers = 2 # taken from max_parallel_workers
|
#max_parallel_maintenance_workers = 2 # limited by max_parallel_workers
|
||||||
max_parallel_workers = 4 # maximum number of max_worker_processes that
|
max_parallel_workers = 4 # number of max_worker_processes that
|
||||||
# can be used in parallel operations
|
# can be used in parallel operations
|
||||||
#parallel_leader_participation = on
|
#parallel_leader_participation = on
|
||||||
#old_snapshot_threshold = -1 # 1min-60d; -1 disables; 0 is immediate
|
|
||||||
# (change requires restart)
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
@ -299,6 +309,11 @@ min_wal_size = 80MB
|
||||||
#recovery_target_action = 'pause' # 'pause', 'promote', 'shutdown'
|
#recovery_target_action = 'pause' # 'pause', 'promote', 'shutdown'
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
|
|
||||||
|
# - WAL Summarization -
|
||||||
|
|
||||||
|
#summarize_wal = off # run WAL summarizer process?
|
||||||
|
#wal_summary_keep_time = '10d' # when to remove old summary files, 0 = never
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# REPLICATION
|
# REPLICATION
|
||||||
|
@ -326,6 +341,8 @@ min_wal_size = 80MB
|
||||||
# method to choose sync standbys, number of sync standbys,
|
# method to choose sync standbys, number of sync standbys,
|
||||||
# and comma-separated list of application_name
|
# and comma-separated list of application_name
|
||||||
# from standby(s); '*' = all
|
# from standby(s); '*' = all
|
||||||
|
#synchronized_standby_slots = '' # streaming replication standby server slot
|
||||||
|
# names that logical walsender processes will wait for
|
||||||
|
|
||||||
# - Standby Servers -
|
# - Standby Servers -
|
||||||
|
|
||||||
|
@ -353,6 +370,7 @@ min_wal_size = 80MB
|
||||||
#wal_retrieve_retry_interval = 5s # time to wait before retrying to
|
#wal_retrieve_retry_interval = 5s # time to wait before retrying to
|
||||||
# retrieve WAL after a failed attempt
|
# retrieve WAL after a failed attempt
|
||||||
#recovery_min_apply_delay = 0 # minimum delay for applying changes during recovery
|
#recovery_min_apply_delay = 0 # minimum delay for applying changes during recovery
|
||||||
|
#sync_replication_slots = off # enables slot synchronization on the physical standby from the primary
|
||||||
|
|
||||||
# - Subscribers -
|
# - Subscribers -
|
||||||
|
|
||||||
|
@ -391,6 +409,7 @@ min_wal_size = 80MB
|
||||||
#enable_seqscan = on
|
#enable_seqscan = on
|
||||||
#enable_sort = on
|
#enable_sort = on
|
||||||
#enable_tidscan = on
|
#enable_tidscan = on
|
||||||
|
#enable_group_by_reordering = on
|
||||||
|
|
||||||
# - Planner Cost Constants -
|
# - Planner Cost Constants -
|
||||||
|
|
||||||
|
@ -692,6 +711,7 @@ log_timezone = UTC
|
||||||
#default_transaction_deferrable = off
|
#default_transaction_deferrable = off
|
||||||
#session_replication_role = 'origin'
|
#session_replication_role = 'origin'
|
||||||
#statement_timeout = 0 # in milliseconds, 0 is disabled
|
#statement_timeout = 0 # in milliseconds, 0 is disabled
|
||||||
|
#transaction_timeout = 0 # in milliseconds, 0 is disabled
|
||||||
#lock_timeout = 0 # in milliseconds, 0 is disabled
|
#lock_timeout = 0 # in milliseconds, 0 is disabled
|
||||||
#idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled
|
#idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled
|
||||||
#idle_session_timeout = 0 # in milliseconds, 0 is disabled
|
#idle_session_timeout = 0 # in milliseconds, 0 is disabled
|
||||||
|
@ -706,6 +726,7 @@ log_timezone = UTC
|
||||||
#xmloption = 'content'
|
#xmloption = 'content'
|
||||||
#gin_pending_list_limit = 4MB
|
#gin_pending_list_limit = 4MB
|
||||||
#createrole_self_grant = '' # set and/or inherit
|
#createrole_self_grant = '' # set and/or inherit
|
||||||
|
#event_triggers = on
|
||||||
|
|
||||||
# - Locale and Formatting -
|
# - Locale and Formatting -
|
||||||
|
|
||||||
|
@ -782,6 +803,7 @@ default_text_search_config = 'pg_catalog.english'
|
||||||
# - Other Platforms and Clients -
|
# - Other Platforms and Clients -
|
||||||
|
|
||||||
#transform_null_equals = off
|
#transform_null_equals = off
|
||||||
|
#allow_alter_system = on
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue