Re: Replaying archived wal files after a dump restore?

Lists: pgadmin-hackerspgsql-adminpgsql-hackers
From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, pgsql-admin(at)postgresql(dot)org
Subject: pgAdmin guru hints
Date: 2005-10-03 00:16:37
Message-ID: 43407865.7090706@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers pgsql-admin pgsql-hackers

In-time for PostgreSQL 8.1 gold, The pgAdmin Developer Team will release
pgAdmin III V1.4, which has a new Guru hint feature that tries to give
users helpful hints on typical beginner's pitfalls.

The current set of hints is at
http://svn.pgadmin.org/cgi-bin/viewcvs.cgi/trunk/pgadmin3/docs/en_US/hints/

You're invited to make your comments on the hints: are these correct, is
there something missing or misleading?

Regards,
Andreas


From: David Fetter <david(at)fetter(dot)org>
To: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, pgsql-admin(at)postgresql(dot)org
Subject: Re: [HACKERS] pgAdmin guru hints
Date: 2005-10-03 05:27:44
Message-ID: 20051003052744.GF4490@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers pgsql-admin pgsql-hackers

On Mon, Oct 03, 2005 at 02:16:37AM +0200, Andreas Pflug wrote:
> In-time for PostgreSQL 8.1 gold, The pgAdmin Developer Team will
> release pgAdmin III V1.4, which has a new Guru hint feature that
> tries to give users helpful hints on typical beginner's pitfalls.
>
> The current set of hints is at
> http://svn.pgadmin.org/cgi-bin/viewcvs.cgi/trunk/pgadmin3/docs/en_US/hints/
>
> You're invited to make your comments on the hints: are these
> correct, is there something missing or misleading?

Dunno if this is handled yet, but in the previous version, changes
disallowed by a RULE showed up as though they had happened. Is this
fixed in 1.4-to-be?

Cheers,
D
--
David Fetter david(at)fetter(dot)org http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778

Remember to vote!


From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: David Fetter <david(at)fetter(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] pgAdmin guru hints
Date: 2005-10-03 10:56:44
Message-ID: 43410E6C.7090507@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers pgsql-admin pgsql-hackers

David Fetter wrote:

>
> Dunno if this is handled yet, but in the previous version, changes
> disallowed by a RULE showed up as though they had happened. Is this
> fixed in 1.4-to-be?

Hm, could you elaborate on this a little? I don't know what you mean.

Regards,
Andreas


From: Bastiaan Wakkie <bastiaan(at)wakkie(dot)org>
To: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, pgsql-admin(at)postgresql(dot)org
Subject: Re: pgAdmin guru hints
Date: 2005-10-03 16:04:17
Message-ID: 1128355457.5411.3.camel@wakkie.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers pgsql-admin pgsql-hackers

I noticed a typo in hints/conn-hba.html

The second internal ip adres missed a '.'

> You're invited to make your comments on the hints: are these correct, is
> there something missing or misleading?

Cheers,
--
^(B(astia{2}n)?)(\s)?(W(ak{2}ie)?)$


From: Jeff Frost <jeff(at)frostconsultingllc(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Replaying archived wal files after a dump restore?
Date: 2005-10-03 18:25:25
Message-ID: Pine.LNX.4.63.0510031124330.5115@discord.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers pgsql-admin pgsql-hackers

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

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


From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Jeff Frost <jeff(at)frostconsultingllc(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Replaying archived wal files after a dump restore?
Date: 2005-10-25 03:09:51
Message-ID: 20051025030951.GA16642@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers pgsql-admin pgsql-hackers

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(at)frostconsultingllc(dot)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/writings/pgsql/sgml/backup-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.


From: Jeff Frost <jeff(at)frostconsultingllc(dot)com>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Replaying archived wal files after a dump restore?
Date: 2005-10-25 15:55:06
Message-ID: Pine.LNX.4.64.0510250851380.17611@discord.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers pgsql-admin pgsql-hackers

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(at)frostconsultingllc(dot)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/writings/pgsql/sgml/backup-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(at)frostconsultingllc(dot)com>
Frost Consulting, LLC http://www.frostconsultingllc.com/
Phone: 650-780-7908 FAX: 650-649-1954


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
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?"