Re: Missing mapping in 8.3/tsearch2.sql - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Missing mapping in 8.3/tsearch2.sql
Date
Msg-id 13956.1239340251@sss.pgh.pa.us
Whole thread Raw
In response to Missing mapping in 8.3/tsearch2.sql  (Josh Berkus <josh@agliodbs.com>)
Responses Re: Missing mapping in 8.3/tsearch2.sql
List pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
> The Tsearch2.sql compatibility fuctions in 
> /contrib/tsearch2/tsearch2.sql don't include an important compatibility 
> object.  For 8.2 Tsearch2 usage, a lot of queries were written calling 
> the "default" config, like:

> to_tsvector('default',somedata)

> In 8.3 this fails with a "No such config 'default'" error, even after 
> loading the compatibility SQL.  We need to add this to the compatibility 
> SQL generation code:

No, we should not.  It's up to the user to create a "default" config
that matches whatever they were using before.

Now, if you are volunteering to create a translation facility for the
whole contents of the old configuration tables, step right up and have
at it.  But we should *not* insert a bogus substitute configuration.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pg_restore dependencies
Next
From: Josh Berkus
Date:
Subject: Re: Missing mapping in 8.3/tsearch2.sql