Re: Tsearch1 problem

Поиск
Список
Период
Сортировка
От Sam Barnett-Cormack
Тема Re: Tsearch1 problem
Дата
Msg-id Pine.LNX.4.50.0402241408430.438-100000@short.lancs.ac.uk
обсуждение исходный текст
Ответ на Re: Tsearch1 problem  (Oleg Bartunov <oleg@sai.msu.su>)
Ответы Re: Tsearch1 problem  (Oleg Bartunov <oleg@sai.msu.su>)
Список pgsql-admin
On Tue, 24 Feb 2004, Oleg Bartunov wrote:

> On Tue, 24 Feb 2004, Rajesh Kumar Mallah wrote:
>
> >
> > Greetings,
> >
> > The function txt2txtidx of tsearch1 crashes the backend
> > in my installation when it is called with a text where '-'  is
> > immediately followed by a number.
>
> example, please. Cut'n paste from psql console would be fine.
> Also, what's version of postgresql ?

That would be what's below.

> > Does any one has any solution for it?
> >
> > Regds
> > Mallah.
> >
> >
> >
> > tradein_clients=# SELECT version();
> > +-----------------------------------------------------------+
> > |                          version                          |
> > +-----------------------------------------------------------+
> > | PostgreSQL 7.3 on i686-pc-linux-gnu, compiled by GCC 2.96 |
> > +-----------------------------------------------------------+
> > (1 row)
> >
> > Time: 0.61 ms
> > tradein_clients=# SELECT txt2txtidx('Hello');
> > +------------+
> > | txt2txtidx |
> > +------------+
> > | 'hello'    |
> > +------------+
> > (1 row)
> >
> > Time: 0.72 ms
> > tradein_clients=# SELECT txt2txtidx('Hello A');
> > +------------+
> > | txt2txtidx |
> > +------------+
> > | 'hello'    |
> > +------------+
> > (1 row)
> >
> > Time: 0.72 ms
> > tradein_clients=# SELECT txt2txtidx('Hello A-');
> > +------------+
> > | txt2txtidx |
> > +------------+
> > | 'hello'    |
> > +------------+
> > (1 row)
> >
> > Time: 0.64 ms
> > tradein_clients=# SELECT txt2txtidx('Hello A-A');
> > +---------------+
> > |  txt2txtidx   |
> > +---------------+
> > | 'a-a' 'hello' |
> > +---------------+
> > (1 row)
> >
> > Time: 0.92 ms
> > tradein_clients=# SELECT txt2txtidx('Hello A-1');
> > server closed the connection unexpectedly
> >         This probably means the server terminated abnormally
> >         before or while processing the request.
> > The connection to the server was lost. Attempting reset: Failed.
> > !#
> >
>
>     Regards,
>         Oleg
> _____________________________________________________________
> Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
> Sternberg Astronomical Institute, Moscow University (Russia)
> Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
> phone: +007(095)939-16-83, +007(095)939-23-83
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>

--

Sam Barnett-Cormack
Software Developer                           |  Student of Physics & Maths
UK Mirror Service (http://www.mirror.ac.uk)  |  Lancaster University

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

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