Skip to content

Commit 7e5dd5f

Browse files
author
Mike Conrad
committed
Convert parameters to use on/off logic
1 parent 81d19a7 commit 7e5dd5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/postgresql.conf-9.6.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ authentication_timeout = {{postgresql_authentication_timeout}} # 1s-600s
8080
ssl = {{'on' if postgresql_ssl else 'off'}} # (change requires restart)
8181
ssl_ciphers = '{{postgresql_ssl_ciphers|join(':')}}' # allowed SSL ciphers
8282
# (change requires restart)
83-
ssl_prefer_server_ciphers = {{postgresql_ssl_prefer_server_ciphers}} # (change requires restart)
83+
ssl_prefer_server_ciphers = {{ 'on' if postgresql_ssl_prefer_server_ciphers else 'off' }} # (change requires restart)
8484
ssl_ecdh_curve = '{{postgresql_ssl_ecdh_curve}}' # (change requires restart)
8585
ssl_cert_file = '{{postgresql_ssl_cert_file}}' # (change requires restart)
8686
ssl_key_file = '{{postgresql_ssl_key_file}}' # (change requires restart)
@@ -191,7 +191,7 @@ wal_sync_method = {{postgresql_wal_sync_method}} # the default is the first opt
191191
# open_sync
192192
full_page_writes = {{'on' if postgresql_full_page_writes else 'off'}} # recover from partial page writes
193193
wal_compression = {{ 'on' if postgresql_wal_compression else 'off' }}
194-
wal_log_hints = {{postgresql_wal_log_hints}} # also do full page writes of non-critical updates
194+
wal_log_hints = {{ 'on' if postgresql_wal_log_hints else 'off' }} # also do full page writes of non-critical updates
195195
# (change requires restart)
196196
wal_buffers = {{postgresql_wal_buffers}} # min 32kB, -1 sets based on shared_buffers
197197
# (change requires restart)

0 commit comments

Comments
 (0)