Re: Tsearch2 can't be checked for equality?

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Yonatan Ben-Nes <yonatan(at)epoch(dot)co(dot)il>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Tsearch2 can't be checked for equality?
Date: 2007-03-25 18:28:26
Message-ID: Pine.LNX.4.64.0703252227060.12152@sn.sai.msu.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

What version ?
in CVS HEAD I have

postgres=# select to_tsvector('english', 'bh da') = to_tsvector('english', 'bh da');
?column?
----------
t
(1 row)

I think, it should works in 8.2 also.

Oleg
On Sun, 25 Mar 2007, Yonatan Ben-Nes wrote:

> Hi all,
>
> I'm trying to compare between 2 tsvector fields and I'm encountering a
> problem, for example:
>
> test.com=> SELECT 1 WHERE to_tsvector('default', 'bh da') =
> to_tsvector('default', 'bh da');
> ?column?
> ----------
> (0 rows)
>
>
> There is another way that I can check for equality of 2 tsvector fields?
>
> Thanks a lot in advance,
> Ben-Nes Yonatan
>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-03-25 18:48:02 Re: Tsearch2 can't be checked for equality?
Previous Message Joe Conway 2007-03-25 17:58:33 Re: Matrix (linear algebra) operations and types in PG?