Re: Please, apply patch of tsearch for current CVS & 7.3.1

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Teodor Sigaev <teodor(at)stack(dot)net>
Cc: "Magnus Naeslund(f)" <mag(at)fbab(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Please, apply patch of tsearch for current CVS & 7.3.1
Date: 2002-12-04 18:00:50
Message-ID: 200212041800.gB4I0os04123@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Your patch has been added to the PostgreSQL unapplied patches list at:

http://momjian.postgresql.org/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

---------------------------------------------------------------------------

Teodor Sigaev wrote:
> 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.
> >
> > So you tsearch guys will have to work it out :)
> >
>
> --
> Teodor Sigaev
> teodor(at)stack(dot)net
>

[ application/gzip is not supported, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vince Vielhaber 2002-12-04 18:01:19 Re: [GENERAL] PostgreSQL Global Development Group Announces
Previous Message Bruce Momjian 2002-12-04 17:57:05 Re: [GENERAL] PostgreSQL Global Development Group Announces