pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fischer Ulrich <ulrich.fischer@aerodynamics.ch>
To: Grega Bremec <grega.bremec@noviforum.si>
Cc: pgsql-admin@postgresql.org
Subject: Re: problem with pg_dump and pg_restore
Date: Wed, 21 Apr 2004 15:44:08 +0200
Message-ID: <40867AA8.1020803@aerodynamics.ch> (raw)
In-Reply-To: <20040421132823.GA8984@elbereth.noviforum.si>
References: <40866D3E.3060600@aerodynamics.ch>
	<20040421132823.GA8984@elbereth.noviforum.si>

The schema/data separation is higly recommended in the HowTo of tsearch2.
Thanks for your idea, I'l try it!

Ulrich



Grega Bremec wrote:
> ...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,


-- 
Ulrich G. Fischer                       Dipl. Natw. ETH
Center Aerodynamics                     Ruag Aerospace
P.O. Box 301                            CH-6032 Emmen
Tel. +41 41 268 23 53                   Fax. +41 41 268 38 97
ulrich.fischer@aerodynamics.ch          www.ruag.com




view thread (5+ messages)  latest in thread

Message-ID: <40867AA8.1020803@aerodynamics.ch>
Permalink:  ../40867AA8.1020803@aerodynamics.ch/
Also on:    postgresql.org/message-id/40867AA8.1020803@aerodynamics.ch

 · 

reply

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: ulrich.fischer@aerodynamics.ch, grega.bremec@noviforum.si
  Subject: Re: problem with pg_dump and pg_restore
  In-Reply-To: <40867AA8.1020803@aerodynamics.ch>
  References: <40866D3E.3060600@aerodynamics.ch> <20040421132823.GA8984@elbereth.noviforum.si> <40867AA8.1020803@aerodynamics.ch>

* 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