Re: several messages

From: Russ Schneider <sugapablo(at)sugapablo(dot)net>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: several messages
Date: 2003-12-30 16:24:02
Message-ID: Pine.LNX.4.50.0312301113041.5545-100000@dell.sugapablo.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 26 Dec 2003, Russ Schneider wrote:

> I need to transfer a dump from a psql 7.3 database to a 7.2 database.
>
> Is there any way to do this?

In case anyone wants to know (or find out later searching the archives), I
was able to do this with minimal effort.

Here's what worked for me:

1) Dump the 7.3 DB using the --inserts clause.

2) Do a search and replace in the dumpfile, replacing
"pg_catalag.setval" with just "setval".

3) Comment out all the lines at the beginning that create the
databases themselves.

4) In 7.2, create the databases you need via the command line.

5) Dump the file back into 7.2.

--
[ Russ Schneider (a.k.a. Sugapablo) ]
[ http://www.sugapablo.com <--music ]
[ http://www.sugapablo.net <--personal ]
[ sugapablo(at)12jabber(dot)com <--jabber IM ]

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-12-30 16:39:14 Re: ERROR: cache lookup for type 0 of ... pg.dropped.14........ failed
Previous Message Michael Meskes 2003-12-30 16:16:21 Re: Problem with ecpg