diff options
author | Robert Haas <rhaas@postgresql.org> | 2011-01-07 10:49:29 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2011-01-07 11:01:25 -0500 |
commit | a9f72b408325c4abb41b5ab65f8fb79af4c29495 (patch) | |
tree | 82be21c6682a5b7bd71a86f254a24a29247590cc /src | |
parent | a755ea33ae3d772977fa083a8614bb9d4cc36e5a (diff) | |
download | postgresql-a9f72b408325c4abb41b5ab65f8fb79af4c29495.tar.gz postgresql-a9f72b408325c4abb41b5ab65f8fb79af4c29495.zip |
Improve recovery.conf.sample comments.
Jehan-Guillaume de Rorthais, with some additional wordsmithing by me.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/transam/recovery.conf.sample | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/backend/access/transam/recovery.conf.sample b/src/backend/access/transam/recovery.conf.sample index 146ad0394bf..f8f6f9b1083 100644 --- a/src/backend/access/transam/recovery.conf.sample +++ b/src/backend/access/transam/recovery.conf.sample @@ -3,8 +3,8 @@ # ------------------------------- # # Edit this file to provide the parameters that PostgreSQL needs to -# perform an archive recovery of a database, or to act as a log-streaming -# replication standby. +# perform an archive recovery of a database, or to act as a replication +# standby. # # If "recovery.conf" is present in the PostgreSQL data directory, it is # read on postmaster startup. After successful recovery, it is renamed @@ -88,21 +88,27 @@ # STANDBY SERVER PARAMETERS #--------------------------------------------------------------------------- # -# When standby_mode is enabled, the PostgreSQL server will work as -# a standby. It tries to connect to the primary according to the -# connection settings primary_conninfo, and receives XLOG records -# continuously. +# standby_mode +# +# When standby_mode is enabled, the PostgreSQL server will work as a +# standby. It will continuously wait for the additional XLOG records, using +# restore_command and/or primary_conninfo. # #standby_mode = off # +# primary_conninfo +# +# If set, the PostgreSQL server will try to connect to the primary using this +# connection string and receive XLOG records continuously. +# #primary_conninfo = '' # e.g. 'host=localhost port=5432' # # -# By default, a standby server keeps streaming XLOG records from the -# primary indefinitely. If you want to stop streaming and finish recovery, -# opening up the system in read/write mode, specify path to a trigger file. -# Server will poll the trigger file path periodically and stop streaming -# when it's found. +# By default, a standby server keeps restoring XLOG records from the +# primary indefinitely. If you want to stop the standby mode, finish recovery +# and open the system in read/write mode, specify path to a trigger file. +# The server will poll the trigger file path periodically and start as a +# primary server when it's found. # #trigger_file = '' # |