Skip to content
Snippets Groups Projects
Commit de66effe authored by Simon Riggs's avatar Simon Riggs
Browse files

Edit recovery.conf.sample so it matches docs. Change standby_mode

example to 'on or 'off' rather than 'true' or 'false', as shown
in docs. Add restartpoint_command. Add section header for recovery
target parameters, matching docs.
parent b78f6264
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
# which is replaced by the absolute path to copy the log file to. # which is replaced by the absolute path to copy the log file to.
# #
# This parameter is *required* for an archive recovery, but optional # This parameter is *required* for an archive recovery, but optional
# for replication. # for streaming replication.
# #
# It is important that the command return nonzero exit status on failure. # It is important that the command return nonzero exit status on failure.
# The command *will* be asked for log files that are not present in the # The command *will* be asked for log files that are not present in the
...@@ -47,6 +47,13 @@ ...@@ -47,6 +47,13 @@
#restore_command = 'cp /mnt/server/archivedir/%f %p' #restore_command = 'cp /mnt/server/archivedir/%f %p'
# #
# #
# restartpoint_command
#
# specifies an optional shell command to execute at every restartpoint.
# This can be useful for cleaning up the archive of a standby server.
#
#restartpoint_command = ''
#
# recovery_end_command # recovery_end_command
# #
# specifies an optional shell command to execute at completion of recovery. # specifies an optional shell command to execute at completion of recovery.
...@@ -54,9 +61,12 @@ ...@@ -54,9 +61,12 @@
# #
#recovery_end_command = '' #recovery_end_command = ''
# #
#---------------------------------------------------------------------------
# RECOVERY TARGET PARAMETERS
#---------------------------------------------------------------------------
# #
# By default, recovery will rollforward to the end of the WAL log. # By default, recovery will rollforward to the end of the WAL log.
# If you want to stop rollforward before that point, you # If you want to stop rollforward at a specific point, you
# must set a recovery target. # must set a recovery target.
# #
# You may set a recovery target either by transactionId, or # You may set a recovery target either by transactionId, or
...@@ -77,7 +87,6 @@ ...@@ -77,7 +87,6 @@
# #
#recovery_target_timeline = '33' # number or 'latest' #recovery_target_timeline = '33' # number or 'latest'
# #
#
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# LOG-STREAMING REPLICATION PARAMETERS # LOG-STREAMING REPLICATION PARAMETERS
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
...@@ -87,7 +96,7 @@ ...@@ -87,7 +96,7 @@
# connection settings primary_conninfo, and receives XLOG records # connection settings primary_conninfo, and receives XLOG records
# continuously. # continuously.
# #
#standby_mode = 'false' # 'true' or 'false' #standby_mode = 'off' # 'on' or 'off'
# #
#primary_conninfo = 'host=localhost port=5432' #primary_conninfo = 'host=localhost port=5432'
# #
...@@ -104,7 +113,6 @@ ...@@ -104,7 +113,6 @@
# HOT STANDBY PARAMETERS # HOT STANDBY PARAMETERS
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# #
# If you want to enable read-only connections during recovery, enable # Hot Standby related parameters are listed in postgresql.conf
# recovery_connections in postgresql.conf
# #
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment