Files
dbis_core/templates/postgresql/postgresql.conf.example
2026-01-02 20:27:42 -08:00

34 lines
778 B
Plaintext

# PostgreSQL Configuration Template
# This file should be placed in /etc/postgresql/15/main/postgresql.conf
# Adjust version number (15) based on your PostgreSQL version
# Connection Settings
listen_addresses = '*'
port = 5432
max_connections = 100
# Memory Settings
shared_buffers = 2GB
effective_cache_size = 6GB
maintenance_work_mem = 512MB
work_mem = 20MB
# WAL Settings
wal_buffers = 16MB
checkpoint_completion_target = 0.9
wal_compression = on
# Query Tuning
random_page_cost = 1.1
effective_io_concurrency = 200
# Logging
logging_collector = on
log_directory = 'log'
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'
log_rotation_age = 1d
log_rotation_size = 100MB
log_min_duration_statement = 1000
log_line_prefix = '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h '