Skip site navigation (1) Skip section navigation (2)

Re: Restoring a Databases that features tserach2

From: Fischer Ulrich <ulrich(dot)fischer(at)aerodynamics(dot)ch>
To: a(dot)schmitz(at)cityweb(dot)de
Cc: pgsql-admin(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: Restoring a Databases that features tserach2
Date: 2004-04-22 11:00:11
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-adminpgsql-general
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.


Andreas Schmitz wrote:
> How exactly is the dump created and the restore started ?
> On Thursday 22 April 2004 10:55, Fischer Ulrich wrote:
>>I'm trying to restore tsearch2 featuring database like discribed in the
>>'tsearch-V2-intro' document.
>>In point '5) Restore the data for the database' I get the following Error:
>>pg_restore: ERROR:  duplicate key violates unique constraint
>>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?

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

In response to


pgsql-admin by date

Next:From: Tom LaneDate: 2004-04-22 12:52:28
Subject: Re: Problems with select lower()
Previous:From: Andreas SchmitzDate: 2004-04-22 08:55:17
Subject: Problems with select lower()

pgsql-general by date

Next:From: Stijn VanroyeDate: 2004-04-22 11:01:19
Subject: Re: What is wrong here?
Previous:From: Jim SeymourDate: 2004-04-22 10:56:43
Subject: Re: ident authentication problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group