temp
This commit is contained in:
28
deployments/docker/postgresql.conf
Normal file
28
deployments/docker/postgresql.conf
Normal file
@@ -0,0 +1,28 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user