Skip to content

Commit de66eff

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.
1 parent b78f626 commit de66eff

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/backend/access/transam/recovery.conf.sample

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# which is replaced by the absolute path to copy the log file to.
3636
#
3737
# This parameter is *required* for an archive recovery, but optional
38-
# for replication.
38+
# for streaming replication.
3939
#
4040
# It is important that the command return nonzero exit status on failure.
4141
# The command *will* be asked for log files that are not present in the
@@ -47,16 +47,26 @@
4747
#restore_command = 'cp /mnt/server/archivedir/%f %p'
4848
#
4949
#
50+
# restartpoint_command
51+
#
52+
# specifies an optional shell command to execute at every restartpoint.
53+
# This can be useful for cleaning up the archive of a standby server.
54+
#
55+
#restartpoint_command = ''
56+
#
5057
# recovery_end_command
5158
#
5259
# specifies an optional shell command to execute at completion of recovery.
5360
# This can be useful for cleaning up after the restore_command.
5461
#
5562
#recovery_end_command = ''
5663
#
64+
#---------------------------------------------------------------------------
65+
# RECOVERY TARGET PARAMETERS
66+
#---------------------------------------------------------------------------
5767
#
5868
# By default, recovery will rollforward to the end of the WAL log.
59-
# If you want to stop rollforward before that point, you
69+
# If you want to stop rollforward at a specific point, you
6070
# must set a recovery target.
6171
#
6272
# You may set a recovery target either by transactionId, or
@@ -77,7 +87,6 @@
7787
#
7888
#recovery_target_timeline = '33' # number or 'latest'
7989
#
80-
#
8190
#---------------------------------------------------------------------------
8291
# LOG-STREAMING REPLICATION PARAMETERS
8392
#---------------------------------------------------------------------------
@@ -87,7 +96,7 @@
8796
# connection settings primary_conninfo, and receives XLOG records
8897
# continuously.
8998
#
90-
#standby_mode = 'false' # 'true' or 'false'
99+
#standby_mode = 'off' # 'on' or 'off'
91100
#
92101
#primary_conninfo = 'host=localhost port=5432'
93102
#
@@ -104,7 +113,6 @@
104113
# HOT STANDBY PARAMETERS
105114
#---------------------------------------------------------------------------
106115
#
107-
# If you want to enable read-only connections during recovery, enable
108-
# recovery_connections in postgresql.conf
116+
# Hot Standby related parameters are listed in postgresql.conf
109117
#
110118
#---------------------------------------------------------------------------

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy