pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oleg Bartunov <oleg@sai.msu.su>
To: Rajesh Kumar Mallah <mallah@trade-india.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Tsearch1 problem
Date: Tue, 24 Feb 2004 16:41:12 +0300 (MSK)
Message-ID: <Pine.GSO.4.58.0402241640310.19870@ra.sai.msu.su> (raw)
In-Reply-To: <403B43A2.9040600@trade-india.com>
References: <403B43A2.9040600@trade-india.com>

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 ?

>
> 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



view thread (7+ messages)  latest in thread

Message-ID: <Pine.GSO.4.58.0402241640310.19870@ra.sai.msu.su>
Permalink:  ../Pine.GSO.4.58.0402241640310.19870@ra.sai.msu.su/
Also on:    postgresql.org/message-id/Pine.GSO.4.58.0402241640310.19870@ra.sai.msu.su

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: oleg@sai.msu.su, mallah@trade-india.com
  Subject: Re: Tsearch1 problem
  In-Reply-To: <Pine.GSO.4.58.0402241640310.19870@ra.sai.msu.su>
  References: <403B43A2.9040600@trade-india.com> <Pine.GSO.4.58.0402241640310.19870@ra.sai.msu.su>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox