Skip to content
Prev Previous commit
Next Next commit
Add single quotes to config template
  • Loading branch information
Michael Conrad committed Oct 10, 2016
commit c99d88921ffc3458b98acb0422f22b7146e40a8a
2 changes: 1 addition & 1 deletion templates/postgresql.conf-9.6.j2
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ track_commit_timestamp = {{'on' if postgresql_track_commit_timestamp else 'off'

# These settings are ignored on a standby server.

synchronous_standby_names = {{postgresql_synchronous_standby_num_sync}} ({{postgresql_synchronous_standby_names|join(',')}}) # standby servers that provide sync rep
synchronous_standby_names = '{{postgresql_synchronous_standby_num_sync}} ({{postgresql_synchronous_standby_names|join(',')}})' # standby servers that provide sync rep

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the current default values, this line becomes:

synchronous_standby_names = '1 ()' # standby servers that provide sync rep

Unfortunately, it breaks postgres service.

Copy link

@arturmartins arturmartins Oct 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameter specifies a list of standby servers using either of the following syntaxes:

num_sync ( standby_name [, ...] )   # >= 9.6
standby_name [, ...]                # < 9.6

https://www.postgresql.org/docs/9.6/static/runtime-config-replication.html

# number of sync standbys and comma-separated list of application_name
# from standby(s); '*' = all
vacuum_defer_cleanup_age = {{postgresql_vacuum_defer_cleanup_age}} # number of xacts by which cleanup is delayed
Expand Down