26 lines
609 B
Plaintext
26 lines
609 B
Plaintext
|
# THIS FILE IS MANAGED BY ANSIBLE
|
||
|
# code: language=ansible-jinja
|
||
|
|
||
|
# Common
|
||
|
listen_addresses = '*'
|
||
|
max_connections = 100
|
||
|
shared_buffers = 128MB
|
||
|
dynamic_shared_memory_type = posix
|
||
|
password_encryption = scram-sha-256
|
||
|
datestyle = 'iso, mdy'
|
||
|
timezone = '{{ timezone }}'
|
||
|
log_timezone = '{{ timezone }}'
|
||
|
lc_messages = 'en_US.utf8'
|
||
|
lc_monetary = 'en_US.utf8'
|
||
|
lc_numeric = 'en_US.utf8'
|
||
|
lc_time = 'en_US.utf8'
|
||
|
|
||
|
# WAL settings
|
||
|
wal_level = replica
|
||
|
max_wal_size = 2GB
|
||
|
min_wal_size = 80MB
|
||
|
|
||
|
# Archiving
|
||
|
archive_mode = on
|
||
|
archive_command = 'test ! -f {{ postgresql_wal_archive }}/%f && cp %p {{ postgresql_wal_archive }}/%f'
|