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

From Tom Lane
Subject Re: How does the tsearch configuration get selected?
Date
Msg-id 3582.1181918636@sss.pgh.pa.us
Whole thread Raw
In response to Re: How does the tsearch configuration get selected?  (Bruce Momjian <bruce@momjian.us>)
Responses Re: How does the tsearch configuration get selected?  (Teodor Sigaev <teodor@sigaev.ru>)
List pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> Do locale names vary across operating systems?

Yes, which is the fatal flaw in the whole thing.  The ru_RU part is
reasonably well standardized, but the encoding part is not.  Considering
that encoding is exactly the part of it we don't care about for this
purpose (because we should look to the database encoding instead),
I think it's just going to make life harder not easier to model search
language names on locales.

I'd suggest allowing either full names ("swedish") or the standard
two-letter abbreviations ("sv").  But let's stay away from locale names.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: Tsearch vs Snowball, or what's a source file?
Next
From: Teodor Sigaev
Date:
Subject: Re: How does the tsearch configuration get selected?