Unix Technical Forum

little correction

This is a discussion on little correction within the pgsql Hackers forums, part of the PostgreSQL category; --> Bruce, in http://www.postgresql.org/docs/8.3/s...ARCH-THESAURUS I think ALTER TEXT SEARCH CONFIGURATION russian ADD MAPPING FOR asciiword, asciihword, hword_asciipart WITH thesaurus_simple; should ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-15-2008, 10:37 PM
Oleg Bartunov
 
Posts: n/a
Default little correction

Bruce,

in
http://www.postgresql.org/docs/8.3/s...ARCH-THESAURUS
I think
ALTER TEXT SEARCH CONFIGURATION russian
ADD MAPPING FOR asciiword, asciihword, hword_asciipart WITH thesaurus_simple;

should be
ALTER TEXT SEARCH CONFIGURATION russian
ALTER MAPPING FOR asciiword, asciihword, hword_asciipart WITH thesaurus_simple;

since configuration russian already exists.


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

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-15-2008, 10:37 PM
Tom Lane
 
Posts: n/a
Default Re: little correction

Oleg Bartunov <oleg@sai.msu.su> writes:
> in
> http://www.postgresql.org/docs/8.3/s...ARCH-THESAURUS
> I think
> ALTER TEXT SEARCH CONFIGURATION russian
> ADD MAPPING FOR asciiword, asciihword, hword_asciipart WITH thesaurus_simple;
> should be
> ALTER TEXT SEARCH CONFIGURATION russian
> ALTER MAPPING FOR asciiword, asciihword, hword_asciipart WITH thesaurus_simple;
> since configuration russian already exists.


Done. I notice that if you try to do it the other way, you get:

regression=# ALTER TEXT SEARCH CONFIGURATION russian
ADD MAPPING FOR asciiword, asciihword, hword_asciipart WITH simple;
ERROR: duplicate key value violates unique constraint "pg_ts_config_map_index"

This is not very good --- we usually try to provide a more friendly
error message than "unique constraint violation" for duplicate system
catalog entries. Not sure how hard it is to fix.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com