*** pgsql/doc/src/sgml/pgstandby.sgml 2009/06/25 12:03:11 2.10 --- pgsql/doc/src/sgml/pgstandby.sgml 2010/05/25 15:55:28 2.11 *************** *** 1,4 **** ! pg_standby --- 1,4 ---- ! pg_standby *************** pg_standby optio *** 122,220 **** ! ! <application>pg_standby</> options ! ! ! ! Option ! Default ! Description ! ! ! ! ! -c ! yes ! ! Use cp or copy command to restore WAL files ! from archive. ! ! ! ! -d ! no ! Print lots of debug logging output on stderr. ! ! ! -k numfiles ! 0 ! ! Remove files from archivelocation so that ! no more than this many WAL files before the current one are kept in the ! archive. Zero (the default) means not to remove any files from ! archivelocation. ! This parameter will be silently ignored if ! restartwalfile is specified, since that ! specification method is more accurate in determining the correct ! archive cut-off point. ! Use of this parameter is deprecated as of ! PostgreSQL 8.3; it is safer and more efficient to ! specify a restartwalfile parameter. A too ! small setting could result in removal of files that are still needed ! for a restart of the standby server, while a too large setting wastes ! archive space. ! ! ! ! -r maxretries ! 3 ! ! Set the maximum number of times to retry the copy command if it ! fails. After each failure, we wait for sleeptime * ! num_retries so that the wait time increases progressively. So by default, we will wait 5 secs, 10 secs, then 15 secs before reporting the failure back to the standby server. This will be interpreted as end of recovery and the standby will come up fully as a result. ! ! ! ! -s sleeptime ! 5 ! ! Set the number of seconds (up to 60) to sleep between tests to see ! if the WAL file to be restored is available in the archive yet. ! The default setting is not necessarily recommended; ! consult for discussion. ! ! ! ! -t triggerfile ! none ! ! Specify a trigger file whose presence should cause failover. ! It is recommended that you use a structured filename to ! avoid confusion as to which server is being triggered ! when multiple servers exist on the same system; for example ! /tmp/pgsql.trigger.5432. ! ! ! ! -w maxwaittime ! 0 ! ! Set the maximum number of seconds to wait for the next WAL file, ! after which a fast failover will be performed. ! A setting of zero (the default) means wait forever. ! The default setting is not necessarily recommended; ! consult for discussion. ! ! ! ! !
--- 122,235 ---- ! ! ! ! <application>pg_standby</> Options ! ! ! pg_standby accepts the following command-line arguments: ! ! ! ! ! ! ! ! Use cp or copy command to restore WAL files ! from archive. This is the only supported behavior so this option is useless. ! ! ! ! ! ! ! ! ! Print lots of debug logging output on stderr. ! ! ! ! ! ! ! ! ! Remove files from archivelocation so that ! no more than this many WAL files before the current one are kept in the ! archive. Zero (the default) means not to remove any files from ! archivelocation. ! This parameter will be silently ignored if ! restartwalfile is specified, since that ! specification method is more accurate in determining the correct ! archive cut-off point. ! Use of this parameter is deprecated as of ! PostgreSQL 8.3; it is safer and more efficient to ! specify a restartwalfile parameter. A too ! small setting could result in removal of files that are still needed ! for a restart of the standby server, while a too large setting wastes ! archive space. ! ! ! ! ! ! maxretries ! ! ! Set the maximum number of times to retry the copy command if ! it fails (default 3). After each failure, we wait for ! sleeptime * num_retries so that the wait time increases progressively. So by default, we will wait 5 secs, 10 secs, then 15 secs before reporting the failure back to the standby server. This will be interpreted as end of recovery and the standby will come up fully as a result. ! ! ! ! ! ! sleeptime ! ! ! Set the number of seconds (up to 60, default 5) to sleep between ! tests to see if the WAL file to be restored is available in ! the archive yet. The default setting is not necessarily ! recommended; consult for discussion. ! ! ! ! ! ! triggerfile ! ! ! Specify a trigger file whose presence should cause failover. ! It is recommended that you use a structured filename to ! avoid confusion as to which server is being triggered ! when multiple servers exist on the same system; for example ! /tmp/pgsql.trigger.5432. ! ! ! ! ! ! maxwaittime ! ! ! Set the maximum number of seconds to wait for the next WAL file, ! after which a fast failover will be performed. ! A setting of zero (the default) means wait forever. ! The default setting is not necessarily recommended; ! consult for discussion. ! ! ! ! ! ! !