data_directory = '{{ postgres_data_dir }}' listen_addresses = '127.0.0.1' port = 5432 max_connections = 100 shared_buffers = 256MB password_encryption = 'scram-sha-256' wal_level = replica max_wal_senders = 5 wal_compression = on {% if deployment_environment == 'prod' %} archive_mode = on archive_command = '/usr/local/sbin/wal-g-postgres wal-push %p' archive_timeout = 300 {% else %} archive_mode = off archive_command = '' {% endif %} logging_collector = on log_directory = 'log' log_filename = 'postgresql-%a.log'