Re: Tsearch1 problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Tsearch1 problem
Дата
Msg-id 22428.1077637176@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Tsearch1 problem  (Oleg Bartunov <oleg@sai.msu.su>)
Ответы Re: Tsearch1 problem  (Oleg Bartunov <oleg@sai.msu.su>)
Список pgsql-admin
Oleg Bartunov <oleg@sai.msu.su> writes:
> Also, I run test on 7.3.3
> Everything  is ok.
> I see your version of postgresql is outdated (you may upgrade at least
> to 7.3.5 !) and most suspicious is the version of your compiler 2.96 !

There was at least one post-7.3 bug fix in tsearch, according to the CVS
logs.  Could this be it?

2002-12-06 00:15  momjian

    * contrib/tsearch/morph.c (REL7_3_STABLE): Thank you very much, you
    catch it :). This bug had a long life, because it exists if and
    only if locale of postmaster was a different from C (or
    ru_RU.KOI8-R).

    Please, apply patch for current CVS & 7.3.1

    Magnus Naeslund(f) wrote:
    > Ok, I nailed the bug, but i'm not sure what the correct fix is.
    > Attached tsearch_morph.diff that remedies this problem by
    avoiding it.
    > Also there's a debug aid patch if someone would like to know how
    i
    > finally found it out :)
    >
    > There problem in the lemmatize() function is that GETDICT(...)
    returned
    > a value not handled (BYLOCALE).
    > The value (-1) and later used as an index into the dicts[] array.
    > After that everything went berserk stack went crazy somehow so
    trapping
    > the fault sent me to the wrong place, and every time i read the
    value it
    > was positive ;)
    >
    > So now i just return the initial word passed to the lemmatize
    function,
    > because i don't know what to do with it.

    Magnus Naeslund

            regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Donald Fraser"
Дата:
Сообщение: Re: Tsearch1 problem
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: Tsearch1 problem