FYI,
The problem does NOT exist in 8.2beta3.
I think it can be assumed that this was some locale related issue ...
Thanks for your help,Arek.
> -----Original Message-----
> From: Teodor Sigaev [mailto:teodor@sigaev.ru]
> Sent: Wednesday, November 22, 2006 5:12 PM
> To: Staroń Arkadiusz
> Cc: pgsql-hackers@postgresql.org
> Subject: Re: [HACKERS] Tsearch + polish ispell + polish locale
>
> >> Does lower()/upper() functions works well in postgres?
> >
> > Until regis error it works fine... then it gets broken.
> > As the matter of fact I wasn't able to determine who breaks it, is it
> postgres or tsearch ...
> >
> > Any idea how can I check it ?
>
> It seems to me, it's a memory corruption somewhere.
>
> try to compile postgres(and tsearch2 too) with
> CFLAGS=-O0 ./configure --enable-cassert --enable-debug
> and repeats the tests
>
> If you are using recent versions of Linux libc (later than 5.4.23) and
> GNU
> libc (2.x) then it will be useful to set MALLOC_CHECK_ enviroment variable
> to 2
> before starting postgres (man 3 malloc).
>
> --
> Teodor Sigaev E-mail: teodor@sigaev.ru
> WWW:
> http://www.sigaev.ru/