From: Edoardo Ceccarelli <eddy@axa.it>
To: Jim Nasby <decibel@decibel.org>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-admin@postgresql.org, Shane Ambler <pgsql@007marketing.com>
Cc: Richard Broersma Jr <rabroersma@yahoo.com>
Cc: adamr@informatyka.gdansk.pl
Subject: Re: dump from 8.x restore to 7.3.x
Date: Tue, 05 Dec 2006 13:33:18 +0100
Message-ID: <4575670E.9050509@axa.it> (raw)
In-Reply-To: <C2D0F0DA-5CAD-462D-A133-AD175927892D@decibel.org>
References: <475722.43429.qm@web31810.mail.mud.yahoo.com>
<456EBBEE.7090107@007Marketing.com>
<200611301452.37666.peter_e@gmx.net>
<C2D0F0DA-5CAD-462D-A133-AD175927892D@decibel.org>
>
> On the other hand, dumping a newer version database with an older
> version of *pg_dump* is much more likely to succeed. It's not a
> guarantee, but it should get you pretty close. And as someone else
> mentioned, doing a plain text dump is probably your best bet in this case.
No, that's not an option, I have tried several combinations like using
old pg_dump on a new db but the results are always the same: no way to
restore a newer db on an older pg (my test were only about PG8 - PG7)
The best solution is the one that Adam was suggesting (btw Thank you) in
this same thread, doing a "pg_dump -Fp" on the new db and restoring it
with a
\i FILENAME from the old PG
The only issue about this is that it doesn't treat LO's at all, but it
was enough in my "disaster recovery" scenario.
I started investigating about dumping and restoring LO's and I found a
pretty interesting project under the 7.4 contrib dir, but it seems it's
not maintained any more and I didn't manage to compile it.
Using the lo_export - import function seems doesn't work for "ALL" the
LO's of the database.. maybe it's possible to write a query to do that
but - again - it wasn't so important to save blobs
Thank you again to everybody for your help
Edoardo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: eddy@axa.it, decibel@decibel.org, peter_e@gmx.net, pgsql@007marketing.com, rabroersma@yahoo.com, adamr@informatyka.gdansk.pl
Subject: Re: dump from 8.x restore to 7.3.x
In-Reply-To: <4575670E.9050509@axa.it>
References: <475722.43429.qm@web31810.mail.mud.yahoo.com> <456EBBEE.7090107@007Marketing.com> <200611301452.37666.peter_e@gmx.net> <C2D0F0DA-5CAD-462D-A133-AD175927892D@decibel.org> <4575670E.9050509@axa.it>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox