add to documentation - upgrade from tsearch2 - Mailing list pgsql-hackers

From Pavel Stehule
Subject add to documentation - upgrade from tsearch2
Date
Msg-id 162867790811182206w160250d4t60fb728a14714551@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hello

I migrated database cluster from 8.1 to 8.3, and I had problem with
tsvector domain. I imported tsearch2 module into template1 and then I
started import of complete dump - but public.tsvectors wasn't be known
- and I got message

ERROR:  type "tsvector" is only a shell
LINE 5:     fulltext_index tsvector

After some searching I found so databases are created from template0,
not template1, so my template1 modification was nonsense.

DROP DATABASE brigady;
CREATE DATABASE brigady WITH TEMPLATE = template0  ENCODING = 'UTF8';

so It needs import tsearch2.sql after every database creation

I am missing this information in documentation.

regards
Pavel Stehule


pgsql-hackers by date:

Previous
From: Joshua Tolley
Date:
Subject: Re: Patch Review Complete: Multi-Batch Hash Join Improvements
Next
From: Peter Eisentraut
Date:
Subject: Re: Replace plain-memory ordered array by binary tree in ts_stat() function.