Re: Tsearch2 dump/reload problem - Mailing list pgsql-general

From Michal Hlavac
Subject Re: Tsearch2 dump/reload problem
Date
Msg-id 41091411.40206@medium13.sk
Whole thread Raw
In response to Re: Tsearch2 dump/reload problem  (Michal Hlavac <hlavki@medium13.sk>)
List pgsql-general
Michal Hlavac wrote:

 > hello...
 >
 > I had another problem... I have table with tsvector type.
 > When I run pg_dump database > file.dat
 >
 > in the file.dat is in order first declaration of table and after that
 > declaration of type tsvector...
 >
 > After psql database < file.dat it returns error:
 > ERROR:  type "tsvector" does not exist
 > ERROR:  relation "t_auto_detail_seller" does not exist
 > ERROR:  relation "t_auto_detail_seller" does not exist
 >

sorry, solved... there was problem with regprocedure_7.4.patch.gz too...
I had installed patch, but database needs to be reloaded with these steps:
database e.g. hlk

1. shell: dump hlk > hlk.dat
2. psql: drop database hlk; create database hlk;
3. shell: psql hlk < tsearch2.sql
4. shell: psql hlk < hlk.dat
5. shell: pg_dump hlk_new.dat

and after that hlk_new.dat is correct...

hlavki

pgsql-general by date:

Previous
From: Michal Hlavac
Date:
Subject: Re: Tsearch2 dump/reload problem
Next
From: Steve
Date:
Subject: please please please PLEASE help!