# RuDB package profile. Applied to postgresql.conf at package build time.
|
# Later assignments win, so this block overrides initdb autoconfig.
|
|
# Connections and locks
|
max_connections = 100
|
max_locks_per_transaction = 256
|
max_files_per_process = 1000
|
|
# Memory
|
shared_buffers = 1GB
|
effective_cache_size = 3GB
|
work_mem = 8MB
|
temp_buffers = 8MB
|
maintenance_work_mem = 256MB
|
autovacuum_work_mem = 64MB
|
|
# Autovacuum
|
autovacuum = on
|
autovacuum_max_workers = 4
|
autovacuum_worker_slots = 4
|
autovacuum_naptime = 20s
|
autovacuum_vacuum_scale_factor = 0.01
|
autovacuum_analyze_scale_factor = 0.005
|
autovacuum_vacuum_insert_scale_factor = 0.01
|
autovacuum_vacuum_cost_delay = 10ms
|
autovacuum_vacuum_cost_limit = 800
|
|
# Planner
|
jit = off
|
from_collapse_limit = 20
|
join_collapse_limit = 20
|
max_parallel_workers_per_gather = 0
|
random_page_cost = 1.1
|
|
# Background writer
|
bgwriter_delay = 20ms
|
bgwriter_lru_maxpages = 500
|
bgwriter_lru_multiplier = 4.0
|
|
# Durability and checkpoints
|
fsync = on
|
full_page_writes = on
|
synchronous_commit = on
|
commit_delay = 0
|
wal_level = replica
|
max_wal_senders = 5
|
min_wal_size = 1GB
|
max_wal_size = 2GB
|
checkpoint_timeout = 10min
|
checkpoint_completion_target = 0.9
|
|
# Diagnostics
|
track_activity_query_size = 10kB
|
log_checkpoints = on
|
log_lock_waits = on
|
log_temp_files = 102400
|
|
# 1C modules
|
shared_preload_libraries = 'mchar, fasttrun, fulleq, online_analyze, plantuner'
|
online_analyze.enable = on
|
online_analyze.table_type = 'temporary'
|
online_analyze.local_tracking = on
|
online_analyze.verbose = off
|
plantuner.fix_empty_table = on
|
|
row_security = off
|
|
# temporary-table features
|
enable_temp_memory_catalog = off
|
enable_temp_rd_buffers = off
|