Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 4FB242E00AD for ; Fri, 9 May 2008 11:35:49 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 11972-07 for ; Fri, 9 May 2008 11:35:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by developer.postgresql.org (Postfix) with ESMTP id 75AB22E00A9 for ; Fri, 9 May 2008 11:35:41 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id m49EZOW20164; Fri, 9 May 2008 10:35:24 -0400 (EDT) From: Bruce Momjian Message-Id: <200805091435.m49EZOW20164@momjian.us> Subject: Re: .backup files not needed? In-Reply-To: <1210315913.4268.532.camel@ebony.site> To: Simon Riggs Date: Fri, 9 May 2008 10:35:24 -0400 (EDT) CC: pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/19 X-Sequence-Number: 4905 Simon Riggs wrote: > Just had questions from a replication user about why the .backup file is > described as "can ordinarily be ignored" and is considered optional by > recovery also even when pg_start_backup() was used. > > If the file was created, it is necessary to use it in recovery, so > should never be ignored as the docs imply. > > Can we remove the phrase ", and can ordinarily be ignored." ? from > doc/src/sgml/backup.sgml > > > To make use of the backup, you will need to keep around all the WAL > segment files generated during and after the file system backup. > To aid you in doing this, the pg_stop_backup function > creates a backup history file that is immediately > stored into the WAL archive area. This file is named after the first > WAL segment file that you need to have to make use of the backup. > For example, if the starting WAL file is > 0000000100001234000055CD the backup history file will be > named something like > 0000000100001234000055CD.007C9330.backup. (The second > part of the file name stands for an exact position within the WAL > file, and can ordinarily be ignored.) Once you have safely archived > the file system backup and the WAL segment files used during the > backup (as specified in the backup history file), all archived WAL > segments with names numerically less are no longer needed to recover > the file system backup and can be deleted. However, you should > consider keeping several backup sets to be absolutely certain that > you can recover your data. > The comment is saying "the second part of the file name" can be ignored, not the backup file itself. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a hard drive, Christ can be your backup. +