Re: wal files restoration

From: Frank Wittig <fw(at)weisshuhn(dot)de>
To: Amit Jain <amitj(at)cogentcsi(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: wal files restoration
Date: 2007-06-06 13:33:11
Message-ID: 4666B797.7030803@weisshuhn.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello Amit,

Amit Jain schrieb:
> 1. how would i feed this wal files in to my online production database
> so it can take effect in product db.
I don't understand what effect feeding WAL files into a production
database should have. A production database installation keeps all WAL
files it produced since the last recovery checkpoint in its pg_xlog
directory and restores them automatically after it's started after an
ungraceful shutdown.

WAL file restoration is described in
http://www.postgresql.org/docs/current/static/continuous-archiving.html
There you find both - backup and restoration - procedures documented.

> 3. am i need to keep entire wal files or only that date wal file which i
> need to restore.
You need a base backup of the database and all WAL files written since
that backup was created. In your case this would be your 500GB database
and 2.5GB logs per day.

Greetings,
Frank Wittig

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Bernier 2007-06-06 13:45:34 Re: New Live CD needed
Previous Message Marco Colombo 2007-06-06 13:19:16 Re: PITR Base Backup on an idle 8.1 server