summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-09-29 01:36:10 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-09-29 01:36:10 +0000
commitb46bd55a6cba295daa790b331263d9d4b833f44e (patch)
tree05ec2ac2a83d214cf7a8e64f7f09f951e0a7654b /doc/src
parentb37e1770c55db8c9ad71fcf924999cb10c166782 (diff)
Make archive recovery always start a new timeline, rather than only when a
recovery stop time was used. This avoids a corner-case risk of trying to overwrite an existing archived copy of the last WAL segment, and seems simpler and cleaner all around than the original definition. Per example from Jon Colverson and subsequent analysis by Simon.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/backup.sgml10
1 files changed, 4 insertions, 6 deletions
diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml
index e34fc0f3a67..5e8549a2c03 100644
--- a/doc/src/sgml/backup.sgml
+++ b/doc/src/sgml/backup.sgml
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.102 2007/09/26 22:36:30 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.103 2007/09/29 01:36:10 tgl Exp $ -->
<chapter id="backup">
<title>Backup and Restore</title>
@@ -1174,11 +1174,9 @@ restore_command = 'copy /mnt/server/archivedir/%f "%p"' # Windows
<para>
To deal with these problems, <productname>PostgreSQL</> has a notion
- of <firstterm>timelines</>. Each time you recover to a point-in-time
- earlier than the end of the WAL sequence, a new timeline is created
- to identify the series of WAL records generated after that recovery.
- (If recovery proceeds all the way to the end of WAL, however, we do not
- start a new timeline: we just extend the existing one.) The timeline
+ of <firstterm>timelines</>. Whenever an archive recovery is completed,
+ a new timeline is created to identify the series of WAL records
+ generated after that recovery. The timeline
ID number is part of WAL segment file names, and so a new timeline does
not overwrite the WAL data generated by previous timelines. It is
in fact possible to archive many different timelines. While that might