38 lines
1.1 KiB
Django/Jinja
38 lines
1.1 KiB
Django/Jinja
# Alliance Boréale - PostgreSQL Configuration
|
|
# Generated by Ansible - DO NOT EDIT MANUALLY
|
|
# Host: {{ inventory_hostname }}
|
|
# Date: {{ ansible_date_time.iso8601 }}
|
|
|
|
# Network
|
|
listen_addresses = '{{ postgresql.listen_addresses | default("localhost") }}'
|
|
port = {{ postgresql.port | default(5432) }}
|
|
|
|
# Memory
|
|
shared_buffers = {{ postgresql.shared_buffers | default('256MB') }}
|
|
work_mem = {{ postgresql.work_mem | default('16MB') }}
|
|
maintenance_work_mem = {{ postgresql.maintenance_work_mem | default('128MB') }}
|
|
effective_cache_size = {{ postgresql.effective_cache_size | default('1GB') }}
|
|
|
|
# Write-Ahead Log
|
|
wal_level = replica
|
|
max_wal_size = 1GB
|
|
min_wal_size = 80MB
|
|
|
|
# Logging
|
|
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 = 10MB
|
|
log_line_prefix = '%m [%p] %q%u@%d '
|
|
log_timezone = 'America/Toronto'
|
|
|
|
# Locale
|
|
datestyle = 'iso, mdy'
|
|
timezone = 'America/Toronto'
|
|
lc_messages = 'en_CA.UTF-8'
|
|
lc_monetary = 'en_CA.UTF-8'
|
|
lc_numeric = 'en_CA.UTF-8'
|
|
lc_time = 'en_CA.UTF-8'
|
|
default_text_search_config = 'pg_catalog.english'
|