Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mdserver-web/plugins/postgresql/conf/postgresql.conf

50 lines
1.1 KiB

3 years ago
port = 5432
listen_addresses='*'
3 years ago
unix_socket_directories='/tmp,{$APP_PATH}'
3 years ago
3 years ago
max_connections=200
3 years ago
max_wal_size = 1GB
min_wal_size = 80MB
3 years ago
shared_buffers = 128MB
work_mem = 4MB
effective_cache_size = 4GB
temp_buffers = 8MB
max_prepared_transactions = 0
max_stack_depth = 2MB
bgwriter_lru_maxpages = 100
max_worker_processes = 8
dynamic_shared_memory_type = posix
3 years ago
log_timezone = 'Asia/Shanghai'
datestyle = 'iso, ymd'
timezone = 'Asia/Shanghai'
default_text_search_config = 'pg_catalog.simple'
3 years ago
3 years ago
# 主配置
#archive_mode = on
#archive_command = 'test ! -f {$APP_PATH}/archivelog/%f && cp %p {$APP_PATH}/archivelog/%f'
#wal_level = replica
#max_wal_senders = 10
#wal_sender_timeout = 60s
# 从配置
#hot_standby = on
3 years ago
#primary_conninfo = 'host=192.168.0.100 port=5432 user=replica password=123456'
3 years ago
#max_standby_streaming_delay = 30s
#wal_receiver_status_interval = 10s
#hot_standby_feedback = on
3 years ago
#recovery_target_timeline= 'latest'
3 years ago
3 years ago
logging_collector = on
log_destination = 'stderr'
log_directory = '{$APP_PATH}/logs'
log_filename = 'postgresql-%Y-%m-%d.log'
log_statement = all
3 years ago
log_rotation_age = 7d
log_rotation_size = 100MB
3 years ago
log_min_duration_statement = 5000