X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id BE600D1D2CC for ; Wed, 21 Apr 2004 10:44:08 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 57521-08 for ; Wed, 21 Apr 2004 10:44:11 -0300 (ADT) Received: from atlantis.aerodynamics.ch (mail02.aerodynamics.ch [192.54.122.8]) by svr1.postgresql.org (Postfix) with SMTP id 7C51DD1D2AA for ; Wed, 21 Apr 2004 10:44:06 -0300 (ADT) Received: from aerodynamics.ch (susi95.fwe-tf.ch [192.168.0.95]) by atlantis.aerodynamics.ch (8.11.6/8.11.6) with ESMTP id i3LDi8h01251; Wed, 21 Apr 2004 15:44:08 +0200 Message-ID: <40867AA8.1020803@aerodynamics.ch> Date: Wed, 21 Apr 2004 15:44:08 +0200 From: Fischer Ulrich Organization: Ruag Aerospace User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20030906 X-Accept-Language: de-ch, en-us, en MIME-Version: 1.0 To: Grega Bremec Cc: pgsql-admin@postgresql.org Subject: Re: problem with pg_dump and pg_restore References: <40866D3E.3060600@aerodynamics.ch> <20040421132823.GA8984@elbereth.noviforum.si> In-Reply-To: <20040421132823.GA8984@elbereth.noviforum.si> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/277 X-Sequence-Number: 13250 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