puppet: Postgres replication should always switch to latest timeline.

Omission of this setting makes resuming after a primary switchover
difficult-to-impossible.  It is the default in PostgreSQL 12.
This commit is contained in:
Alex Vandiver 2020-06-15 15:26:37 -07:00 committed by Tim Abbott
parent f8fc3a16eb
commit bff3b540b1
6 changed files with 6 additions and 0 deletions

View File

@ -701,6 +701,7 @@ archive_mode = on
archive_command = '/usr/local/bin/env-wal-g wal-push %p'
# Replica settings (ignored on primary)
recovery_target_timeline = 'latest'
hot_standby = on
<% end -%>

View File

@ -701,6 +701,7 @@ archive_mode = on
archive_command = '/usr/local/bin/env-wal-g wal-push %p'
# Replica settings (ignored on primary)
recovery_target_timeline = 'latest'
hot_standby = on
<% end -%>

View File

@ -701,6 +701,7 @@ archive_mode = on
archive_command = '/usr/local/bin/env-wal-g wal-push %p'
# Replica settings (ignored on primary)
recovery_target_timeline = 'latest'
hot_standby = on
<% end -%>

View File

@ -795,6 +795,7 @@ archive_mode = on
archive_command = '/usr/local/bin/env-wal-g wal-push %p'
# Replica settings (ignored on primary)
recovery_target_timeline = 'latest'
hot_standby = on
<% end -%>

View File

@ -673,6 +673,7 @@ archive_mode = on
archive_command = '/usr/local/bin/env-wal-g wal-push %p'
# Replica settings (ignored on primary)
recovery_target_timeline = 'latest'
hot_standby = on
<% end -%>

View File

@ -686,6 +686,7 @@ archive_mode = on
archive_command = '/usr/local/bin/env-wal-g wal-push %p'
# Replica settings (ignored on primary)
recovery_target_timeline = 'latest'
hot_standby = on
<% end -%>