Re: pg_dump cross-version support - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: pg_dump cross-version support
Date
Msg-id 200603191955.23430.peter_e@gmx.net
Whole thread Raw
In response to pg_dump cross-version support  ("Alain BAUDHUIN" <alain.baudhuin@swing.be>)
List pgsql-general
Alain BAUDHUIN wrote:
> I'm surprised, though not to find any pg_dump switch to produce a
> v7.x compatible dump. Did I look at the wrong place ? Does anybody
> know about the right way to dump a database in a cross-version
> compatible form ?

Downgrades are generally not supported.  You may be able to convince the
older pg_dump to dump the newer database but I don't expect that to
work very well either.  The best bet is probably to use the new pg_dump
and manually fix up the dump for 7.3.

> NB: I expect this issue is fairly common for people who, like me, run
> their development server on Windows (ie. v 8+) and have their
> application hosted at a provider who keeps delaying its upgrade from
> v7 to v8...

This sort of thing is a recipe for desaster for more reasons than this
one.  Developing on version X gives no guarantees that deploying on
version Y will work.

Btw., speaking of "v7" and "v8" is about as useful and specific as
talking about Linux 1 and Linux 2.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-general by date:

Previous
From: david.hoksza@seznam.cz
Date:
Subject: ambuild parameters
Next
From: "David Inglis"
Date:
Subject: How to idenity duplicate rows