Thread: recovering from backup + transaction log

recovering from backup + transaction log

From
Gary Stainburn
Date:
Hi folks,

I've been asked this question, and it's about a part of PostgreSQL that I've
not looked at.

Is it possible to recover a database from a dump + some form of transaction
log, i.e. if I pg_dump on a nightly basis, and then at noon the database
crashes, can I take the last dump and roll it forward from a log.

I've had a quick look and seen some info about a write-ahead log, but this
only seems to relate to server crashes.

(Is this to do with the recent Point-in-time recovery, and if so, will we have
to wait for 7.5?)

Any info would be appreciate.
--
Gary Stainburn

This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000


Re: recovering from backup + transaction log

From
Andrew Sullivan
Date:
On Wed, Nov 19, 2003 at 05:17:27PM +0000, Gary Stainburn wrote:
>
> Is it possible to recover a database from a dump + some form of
> transaction log, i.e. if I pg_dump on a nightly basis, and then at
> noon the database crashes, can I take the last dump and roll it
> forward from a log.

No.

> (Is this to do with the recent Point-in-time recovery, and if so,
> will we have to wait for 7.5?)

Yes.

A
--
----
Andrew Sullivan                         204-4141 Yonge Street
Afilias Canada                        Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110