Files
tyapi-server/deployments/docker/postgresql.conf
2025-07-11 21:05:58 +08:00

28 lines
540 B
Plaintext

# PostgreSQL配置文件
# 时区设置
timezone = 'Asia/Shanghai'
log_timezone = 'Asia/Shanghai'
# 字符编码
client_encoding = 'UTF8'
# 连接设置
max_connections = 100
shared_buffers = 128MB
# 日志设置
log_destination = 'stderr'
logging_collector = on
log_directory = 'log'
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'
log_rotation_age = 1d
log_rotation_size = 100MB
# 性能设置
effective_cache_size = 1GB
work_mem = 4MB
maintenance_work_mem = 64MB
# 查询优化
random_page_cost = 1.1
effective_io_concurrency = 200