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 A367DD1C9B4; Thu, 22 Apr 2004 10:56:54 -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 64514-01; Thu, 22 Apr 2004 10:56:56 -0300 (ADT) Received: from atlantis.aerodynamics.ch (mail02.aerodynamics.ch [192.54.122.8]) by svr1.postgresql.org (Postfix) with SMTP id 7CBECD1B44F; Thu, 22 Apr 2004 10:56:50 -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 i3MDueh13641; Thu, 22 Apr 2004 15:56:40 +0200 Message-ID: <4087CF18.9060809@aerodynamics.ch> Date: Thu, 22 Apr 2004 15:56:40 +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: Oleg Bartunov 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> In-Reply-To: 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/295 X-Sequence-Number: 13268 Oleg, this is exactly what I tryed to. But after cleaning all the new pg_ts_* tables I wasn't able to restore my datas. My work arround is now to rename all keys in the pg_ts_* tables (Ex: pg_ts_dict: dict_name: simple to simple_old). With this modification the pg_restore worked! Now I only have to clean the pg_ts_* tables. regards, Ulrich Oleg Bartunov wrote: > Fischer, > > probable scenario: > > after step 3. you have tables pg_ts_* and when you restore your database > you tried to insert duplicated data. > I recommend to see remove any entries related to pg_ts_* tables. > > Oleg > > On Thu, 22 Apr 2004, Fischer Ulrich wrote: > > >>Some additional infos to my problem >> >>Old System: Postgresql 7.3.2 >>New System: Postgresql 7.4.1 >> >> >>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 >> >> >>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. >> >>Ulrich >> >> >> >>Andreas Schmitz wrote: >> >>>How exactly is the dump created and the restore started ? >>> >>> >>> >>>On Thursday 22 April 2004 10:55, Fischer Ulrich wrote: >>> >>> >>>>Hi >>>> >>>>I'm trying to restore tsearch2 featuring database like discribed in the >>>>'tsearch-V2-intro' document. >>>> >>>>(http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/docs/tsearch-V2-int >>>>ro.html) >>>> >>>>In point '5) Restore the data for the database' I get the following Error: >>>> >>>>pg_restore: ERROR: duplicate key violates unique constraint >>>>"pg_ts_dict_pkey" >>>>CONTEXT: COPY pg_ts_dict, line 1: "simple 215247 \N 215248 >>>>Simple example of dictionary." >>>>pg_restore: [archiver (db)] error returned by PQendcopy >>>>pg_restore: *** aborted because of error >>>> >>>> >>>>Does anybody have some experience in this task? >>>> >>>>Thanks >>>> >>>>Ulrich >>> >>> >> >> > > Regards, > Oleg > _____________________________________________________________ > Oleg Bartunov, sci.researcher, hostmaster of AstroNet, > Sternberg Astronomical Institute, Moscow University (Russia) > Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/ > phone: +007(095)939-16-83, +007(095)939-23-83 > > -- 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