tserach2 could not find locale
tserach2 could not find locale
От:
"Vishal Kashyap " <vishalonlist@gmail.com>
Дата:
Hi all ,
tsearch2 is giving me jitters for days now and after full
investigation I am writting into list.
The error is
ERROR: could not find tsearch config by locale INSERT INTO mm_message (
The investigation is
my_db=# select * from pg_ts_cfg;
ts_name | prs_name | locale
-----------------+----------+--------------
default | default | C
default_english | default | en_US
default_russian | default | ru_RU.KOI8-R
simple | default |
postresql.conf file says
lc_messages = 'en_US' # locale for system error message strings
lc_monetary = 'en_US' # locale for monetary formatting
lc_numeric = 'en_US' # locale for number formatting
lc_time = 'en_US' # locale for time formatting
Please guide me how do I get rid of this error
--
With Best Regards,
Vishal Kashyap.
http://www.vishal.net.in
Re: tserach2 could not find locale
От:
Oleg Bartunov <oleg@sai.msu.su>
Дата:
Read
http://www.sai.msu.su/~megera/oddmuse/index.cgi/Tsearch_V2_Notes
and provide us more info about your setup.
Check 'show all' output for locale setup
Oleg
On Thu, 16 Mar 2006, Vishal Kashyap wrote:
> Hi all ,
>
> tsearch2 is giving me jitters for days now and after full
> investigation I am writting into list.
>
> The error is
>
> ERROR: could not find tsearch config by locale INSERT INTO mm_message (
>
> The investigation is
>
> my_db=# select * from pg_ts_cfg;
> ts_name | prs_name | locale
> -----------------+----------+--------------
> default | default | C
> default_english | default | en_US
> default_russian | default | ru_RU.KOI8-R
> simple | default |
>
> postresql.conf file says
>
> lc_messages = 'en_US' # locale for system error message strings
> lc_monetary = 'en_US' # locale for monetary formatting
> lc_numeric = 'en_US' # locale for number formatting
> lc_time = 'en_US' # locale for time formatting
>
>
>
> Please guide me how do I get rid of this error
> --
> With Best Regards,
> Vishal Kashyap.
> http://www.vishal.net.in
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83
Re: tserach2 could not find locale
От:
"Vishal Kashyap " <vishalonlist@gmail.com>
Дата:
Dear Oleg, Thanks Oleg > use en_US.UTF-8 it works as I did test_db=# update pg_ts_cfg set locale = 'en_US.UTF-8'; So to summarize if you recive a error like ERROR: could not find tsearch config by locale INSERT INTO mm_message ( Then log into the server and run the query test_db=# show all; lc_collate | C lc_ctype | en_US.UTF-8 <<<<- For tsearch2 set to this lc_messages | en_US lc_monetary | en_US lc_numeric | en_US lc_time | en_US listen_addresses | localhost -- With Best Regards, Vishal Kashyap. http://www.vishal.net.in