Re: Replaying archived wal files after a dump restore?

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Jeff Frost <jeff(at)frostconsultingllc(dot)com>
Cc: Bruno Wolff III <bruno(at)wolff(dot)to>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Replaying archived wal files after a dump restore?
Date: 2005-10-25 20:33:45
Message-ID: 20051025203344.GB7836@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgsql-admin pgsql-hackers

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(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mohan, Ross" <RMohan(at)arbinet(dot)com>
Cc: pgsql-admin(at)postgresql(dot)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?"

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Florian G. Pflug 2005-10-26 15:56:10 Re: Default extension for sql scripts
Previous Message svn 2005-10-25 20:01:31 SVN Commit by dpage: r4618 - trunk/pgadmin3/pkg/mac

Browse pgsql-admin by date

  From Date Subject
Next Message Alvaro Herrera 2005-10-25 20:35:35 Re: files to ignore during pitr base backup
Previous Message Kishore B 2005-10-25 20:18:16 Why different execution times for different instances for the same query?

Browse pgsql-hackers by date

  From Date Subject
Next Message Yohanes Santoso 2005-10-25 20:37:34 Re: determining random_page_cost value
Previous Message Robert Treat 2005-10-25 20:04:35 Re: expanded \df+ display broken in beta4