Unix Technical Forum

Replaying archived wal files after a dump restore?

This is a discussion on Replaying archived wal files after a dump restore? within the pgsql Admins forums, part of the PostgreSQL category; --> Is it at all possible to manually replay archived WAL files after restoring from a pg_dump dumpfile? -- Jeff ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 06:19 AM
Jeff Frost
 
Posts: n/a
Default Replaying archived wal files after a dump restore?

Is it at all possible to manually replay archived WAL files after restoring
from a pg_dump dumpfile?

--
Jeff Frost, Owner <jeff@frostconsultingllc.com>
Frost Consulting, LLC http://www.frostconsultingllc.com/
Phone: 650-780-7908 FAX: 650-649-1954

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 06:24 AM
Bruno Wolff III
 
Posts: n/a
Default Re: Replaying archived wal files after a dump restore?

Please don't reply to existing threads to start new ones. That is probably why
your message didn't get any replies.

On Mon, Oct 03, 2005 at 11:25:25 -0700,
Jeff Frost <jeff@frostconsultingllc.com> wrote:
> Is it at all possible to manually replay archived WAL files after restoring
> from a pg_dump dumpfile?


You probably want to look at:
http://candle.pha.pa.us/main/writing...up-online.html

That is from the soon to be released 8.1 documentation. PITR is available
in 8.0, but I believe there were enhancements made to the tools for using
it in 8.1.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 06:24 AM
Jeff Frost
 
Posts: n/a
Default Re: Replaying archived wal files after a dump restore?

On Mon, 24 Oct 2005, Bruno Wolff III wrote:

> Please don't reply to existing threads to start new ones. That is probably why
> your message didn't get any replies.


Point taken, but fortunately, Simon got back to me and essentially indicated
that I was out of luck.

> On Mon, Oct 03, 2005 at 11:25:25 -0700,
> Jeff Frost <jeff@frostconsultingllc.com> wrote:
>> Is it at all possible to manually replay archived WAL files after restoring
>> from a pg_dump dumpfile?

>
> You probably want to look at:
> http://candle.pha.pa.us/main/writing...up-online.html
>
> That is from the soon to be released 8.1 documentation. PITR is available
> in 8.0, but I believe there were enhancements made to the tools for using
> it in 8.1.


Unfortunately, diffing the 8.0.4 docs against the 8.1 docs shows almost no
useful differences. I was mostly hoping someone with knowledge of the WAL
internal format could tell me how to extract the transactions from some and
manually replay them in the db via psql with lots of copy/paste action.

--
Jeff Frost, Owner <jeff@frostconsultingllc.com>
Frost Consulting, LLC http://www.frostconsultingllc.com/
Phone: 650-780-7908 FAX: 650-649-1954

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 06:24 AM
Alvaro Herrera
 
Posts: n/a
Default Re: Replaying archived wal files after a dump restore?

Jeff Frost wrote:

> Unfortunately, diffing the 8.0.4 docs against the 8.1 docs shows almost no
> useful differences. I was mostly hoping someone with knowledge of the WAL
> internal format could tell me how to extract the transactions from some and
> manually replay them in the db via psql with lots of copy/paste action.


Oh, so the data in the log must be very valuable to you. I guess you
could extract the data if you processed the WAL logs. A tool to do this
doesn't exist as far as I know, but you could write your own. There was
a crude hack by Tom Lane, which you can find on the archives:

From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Mohan, Ross" <RMohan@arbinet.com>
Cc: pgsql-admin@postgresql.org
Date: Wed, 13 Apr 2005 10:26:09 -0400
Subject: Re: [ADMIN] question about wal and point in time recovery

It would be nice to expand on this tool.

--
Alvaro Herrera http://www.PlanetPostgreSQL.org
"Coge la flor que hoy nace alegre, ufana. ¿Quién sabe si nacera otra mañana?"

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:54 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com