Re: How does the WAL work? Need to recovery the database to a specific point of time

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: "Wang, Mary Y" <mary(dot)y(dot)wang(at)boeing(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: How does the WAL work? Need to recovery the database to a specific point of time
Date: 2014-04-22 16:07:12
Message-ID: CA+U5nMLxwa7vn+o6xtGV-F-M7MRisZuuTHJr1CEnKHYxC8V=QA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 22 April 2014 16:40, Wang, Mary Y <mary(dot)y(dot)wang(at)boeing(dot)com> wrote:
> Hi All,
>
>
>
> I’d like to recovery the database to a specific point of time. I see some
> WAL files in the pg_xlog directories.
>
> I read some blogs, and some have indicated that a recovery.conf needs to be
> updated. I do not see a recovery.conf file in the $PG_DATA directory ( I
> see pg_hba.conf and postgresql.conf).
>
>
>
> 1. Do I need to create a recovery.conf file?
>
> 2. What specific settings should I set?
>
> 3. How do I ensure that postgres will read the recovery.conf file?
>
> 4. What is the start/stop postgres command to use when working with a
> recovery.conf file?
>
>
>
> I am running on Postgres 8.4.11 and RHEL 6.4.

Point in Time Recovery is supported, though you have to have done some
planning beforehand. The settings and commands you'll use depend upon
the exact nature of your problem and the backups and other file copies
you possess.

http://www.postgresql.org/docs/devel/static/continuous-archiving.html
etc

--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Wang, Mary Y 2014-04-22 20:08:23 How to undo an update to a table?
Previous Message Matheus de Oliveira 2014-04-22 16:05:13 Re: How does the WAL work? Need to recovery the database to a specific point of time