Re: problem with pg_dump and pg_restore

From: "Anjan Dave" <adave(at)vantage(dot)com>
To: <Corey(dot)Brune(at)transplace(dot)com>, "Grega Bremec" <grega(dot)bremec(at)noviforum(dot)si>
Cc: <pgsql-admin(at)postgresql(dot)org>, <pgsql-admin-owner(at)postgresql(dot)org>, "Fischer Ulrich" <ulrich(dot)fischer(at)aerodynamics(dot)ch>
Subject: Re: problem with pg_dump and pg_restore
Date: 2004-04-21 18:00:14
Message-ID: 4BAFBB6B9CC46F41B2AD7D9F4BBAF78508CBC9@vt-pe2550-001.vantage.vantage.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Corey,

In my case, I have tried using the 7.4.1 pg_dump in 7.2.3, and it was
missing a lot of libraries...did that happen in your case?

I am wondering if it's really possible in the first place.

Thanks,
Anjan

-----Original Message-----
From: Corey(dot)Brune(at)transplace(dot)com [mailto:Corey(dot)Brune(at)transplace(dot)com]
Sent: Wednesday, April 21, 2004 12:06 PM
To: Grega Bremec
Cc: pgsql-admin(at)postgresql(dot)org; pgsql-admin-owner(at)postgresql(dot)org;
Fischer Ulrich
Subject: Re: [ADMIN] problem with pg_dump and pg_restore

When I tried to use the 7.3.2 dump, and use 7.4.1 import, I had several
issues- mostly with data. I actually had to dump with the 7.4.1 dumpall
command, upgrade the DB to 7.4.1, and then everything imported
correctly.

Hope this helps,
Corey

Grega Bremec

<grega(dot)bremec(at)novifor To: Fischer
Ulrich <ulrich(dot)fischer(at)aerodynamics(dot)ch>
um.si> cc:
pgsql-admin(at)postgresql(dot)org
Sent by: Subject: Re: [ADMIN]
problem with pg_dump and pg_restore
pgsql-admin-owner(at)pos

tgresql.org

04/21/2004 08:28 AM

...and on Wed, Apr 21, 2004 at 02:46:54PM +0200, Fischer Ulrich used the
keyboard:
> Hi
>
> I try to move my datas from a postresql 7.3.2 to a postgresql 7.4.1.
The
> database was dumped with:
>
> pg_dumpall -g GLOBALobjects.sql
> pg_dump -s DATABASE > DBschema.sql
> pg_dump -Fc DATABASE > DBdata.tar
>

Why the schema/data separation? One important freedom you get when
combining
schema and data in the dumps is you can alter it after you imported the
data
and thus avoid cyclic dependencies where existance of one foreign key
mandates
the existance of another, which refers to the first one.

For now though, try eliminating all constraints from the schema dump and
ALTERing the tables after you imported the data.

Hope this helped,
--
Grega Bremec
Senior Administrator
Noviforum Ltd., Software & Media
http://www.noviforum.si/
(See attached file: att4aa3m.dat)

Browse pgsql-admin by date

  From Date Subject
Next Message Bruno Wolff III 2004-04-21 18:05:33 Re: unsubscribe
Previous Message Rajesh Kumar Mallah 2004-04-21 17:16:19 set_curcfg('default') + tsearch1 call = postmaster crash