diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml index f67b778a54..624adb9d6d 100644 --- a/doc/src/sgml/backup.sgml +++ b/doc/src/sgml/backup.sgml @@ -1,4 +1,4 @@ - + Backup and Restore @@ -550,8 +550,9 @@ tar -cf backup.tar /usr/local/pgsql/data - To enable WAL archiving, set the configuration parameter to on, + To enable WAL archiving, set the + configuration parameter to archive (or hot_standby), + to on, and specify the shell command to use in the configuration parameter. In practice these settings will always be placed in the @@ -694,7 +695,7 @@ archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/ser linkend="populate-pitr">. If archiving or streaming replication were turned on during execution of one of these statements, WAL would not contain enough information for archive recovery. (Crash recovery is - unaffected.) For this reason, these parameters can only be changed at + unaffected.) For this reason, wal_level can only be changed at server start. However, archive_command can be changed with a configuration file reload. If you wish to temporarily stop archiving, one way to do it is to set archive_command to the empty @@ -1180,7 +1181,8 @@ restore_command = 'cp /mnt/server/archivedir/%f %p' - To prepare for standalone hot backups, set archive_mode to + To prepare for standalone hot backups, set wal_level to + archive (or hot_standby), archive_mode to on, and set up an archive_command that performs archiving only when a switch file exists. For example: diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index f4e1b313be..17450052ef 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -1,4 +1,4 @@ - + Server Configuration @@ -1384,7 +1384,9 @@ SET ENABLE_SEQSCAN TO OFF; with archive, plus information needed to reconstruct the status of running transactions from the WAL. To enable read-only queries on a standby server, wal_level must be set to - hot_standby on the primary. It is thought that there is + hot_standby on the primary, and + must be enabled in the standby. It is + thought that there is little measurable difference in performance between using hot_standby and archive levels, so feedback is welcome if any production impacts are noticeable.