summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-09-29 01:36:19 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-09-29 01:36:19 +0000
commit4ef631fe2c1185c85fabdaa495e0562bd0d41741 (patch)
tree7ad88ed89e58ee84678e7bd128ee2bf3e9d49e1f /doc/src
parent3f850ee9aae6fb09b92fa58235378a7d6bb83c69 (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 36856b692df..1640c67fd67 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.95.2.2 2007/09/14 13:26:36 momjian Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.95.2.3 2007/09/29 01:36:19 tgl Exp $ -->
<chapter id="backup">
<title>Backup and Restore</title>
@@ -1134,11 +1134,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