Files
MikrotikManager/deploy/postgres.conf
T

24 lines
751 B
Plaintext

# MikrotikManager — PostgreSQL 18 runtime (overrides via `postgres -c`).
# Не подменять целиком config_file образа: эти GUC передаются как -c в compose.
timezone = UTC
listen_addresses = '*'
max_connections = 100
shared_buffers = 256MB
work_mem = 16MB
maintenance_work_mem = 128MB
# PG18 AIO: worker (io_uring в Docker/Alpine часто недоступен)
io_method = worker
io_workers = 3
effective_io_concurrency = 200
# TOAST: lz4 (не zstd — для колонок только pglz/lz4)
default_toast_compression = lz4
wal_compression = lz4
# Реже checkpoint / меньше full-page writes (NetFlow upsert)
max_wal_size = 2GB
checkpoint_timeout = 15min
checkpoint_completion_target = 0.9