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 61907D1B579; Thu, 22 Apr 2004 11:28:50 -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 76348-03; Thu, 22 Apr 2004 11:28:52 -0300 (ADT) Received: from atlantis.aerodynamics.ch (mail02.aerodynamics.ch [192.54.122.8]) by svr1.postgresql.org (Postfix) with SMTP id 9562CD1B470; Thu, 22 Apr 2004 11:28:46 -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 i3MESIh14055; Thu, 22 Apr 2004 16:28:18 +0200 Message-ID: <4087D682.6020803@aerodynamics.ch> Date: Thu, 22 Apr 2004 16:28:18 +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: Tom Lane Cc: a.schmitz@cityweb.de, pgsql-admin@postgresql.org, pgsql-general@postgresql.org Subject: Re: [GENERAL] Restoring a Databases that features tserach2 References: <4087886A.9080709@aerodynamics.ch> <200404221208.07902.a.schmitz@cityweb.de> <4087A5BB.8010000@aerodynamics.ch> <25783.1082641667@sss.pgh.pa.us> In-Reply-To: <25783.1082641667@sss.pgh.pa.us> 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/298 X-Sequence-Number: 13271 Tom Lane wrote: > Fischer Ulrich writes: > >>pg_dump (PostgreSQL) 7.3.2 > > >> (pg_dumpall -g GLOBALobjects.sql) >> pg_dump -s DATABASE > DBschema.sql >> pg_dump -Fc DATABASE > DBdata.tar > > >>and rebuilt on the new system with: > > >>psql (PostgreSQL) 7.4.1 >> 1. createdb DATABASE >> 2. (psql DATABASE < GLOBALobjects.sql) >> 3. psql DATABASE < tsearch2.sql >> 3.a. psql DATABASE < setup_ge_ispell.sql >> 4. psql DATABASE < DBschema.sql >> 5. pg_restore -N -a -v -d DATABASE DBdata.tar > > > This is certainly not going to work because the dump from the old > database will already have all the tsearch2 objects, not to mention > whatever setup_ge_ispell.sql may create. You should get rid of steps > 3 and 3a. Get rid of Step 3 and 3a produces Errors in Step 4 like: : CREATE TABLE REVOKE GRANT CREATE TABLE REVOKE GRANT ERROR: type "tsvector" does not exist ERROR: relation "mitarbeiter" does not exist : So I think this is not a good idea ;-) I've got now a Sollution which I'll post after writing and testing my own HowTo! regards Ulrich > > >>There is no difference when dumped with "pg_dump (PostgreSQL) 7.4.1". I >>get the same error. When I do not update the dict-settings >>(setup_ge_ispell.sql) I can not even restore the other datas. > > > If you're still having trouble, try dropping the -N option to pg_restore. > I don't know why that option even exists ... there is no practical use > to it AFAIK. > > regards, tom lane > > -- 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