Re: How does the tsearch configuration get selected? - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: How does the tsearch configuration get selected?
Date
Msg-id 878xalcisu.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: How does the tsearch configuration get selected?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: How does the tsearch configuration get selected?
List pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> It's not really the index's problem; IIUC the behavior of the gist and
> gin index opclasses is not locale-specific.  It's the to_tsvector calls
> that built the tsvector heap column that have a locale specified or
> implicit.  We need some way of annotating the heap column about this.
>
> In the case of a functional index you can expose the locale:
>
>     create index ... (to_tsvector('english'::regconfig, mytextcol))

Maybe there should be a different type for each locale.

I'm not exactly following this thread so I'm not entirely sure whether that
would actually fit well but it's just a thought I had.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: How does the tsearch configuration get selected?
Next
From: Tom Lane
Date:
Subject: Re: How does the tsearch configuration get selected?