Skip site navigation (1) Skip section navigation (2)

Re: on-line backup questions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tom Davies <tgdavies(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: on-line backup questions
Date: 2007-12-22 02:33:50
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Tom Davies <tgdavies(at)gmail(dot)com> writes:
> 1. Purely out of curiousity, what's the nnnnnnnn.history file which is  
> requested from the archive when you restore?

Read the doc section about timelines --- if a history file exists,
it's needed to allow proper tracing of the "timeline" through multiple
recovery attempts.

> 3. What's the best thing to do when I deliberately shut down  
> PostgreSQL (i.e. pg_ctl stop)? When I start again I will be restoring  
> from the most recent backup and rolling forward over the archived WAL  
> files. I believe that shutdown leaves me with unarchived WAL files in  
> pg_xlog.

Yeah, you should archive the latest WAL file, but in 8.0 you'd have to
do that manually.  (IIRC there isn't even a forced-xlog-switch function
in that version to help you.)

> 4. I'm using PostgreSQL 8.0 -- are there any significant improvements  
> in on-line backups in later versions?

Get thyself onto 8.2 ASAP, or maybe go to 8.3 shortly after the
holidays.  8.0 is basically our stone age for PITR support; while
the concepts haven't changed since then, we've filed off a whole lot
of rough edges in operational details.  In a situation where you're
depending on archive recovery as much as this, you *need* those fixes.

			regards, tom lane

In response to


pgsql-admin by date

Next:From: Tom DaviesDate: 2007-12-22 05:20:26
Subject: Re: on-line backup questions
Previous:From: Tom DaviesDate: 2007-12-22 02:02:50
Subject: on-line backup questions

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group