Tsearch2 can't be checked for equality?

Started by Yonatan Ben-Nesabout 19 years ago4 messagesgeneral
Jump to latest
#1Yonatan Ben-Nes
yonatan@epoch.co.il

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

#2Oleg Bartunov
oleg@sai.msu.su
In reply to: Yonatan Ben-Nes (#1)
Re: Tsearch2 can't be checked for equality?

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@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Oleg Bartunov (#2)
Re: Tsearch2 can't be checked for equality?

Oleg Bartunov <oleg@sai.msu.su> writes:

What version ?
...
I think, it should works in 8.2 also.

A look at the CVS log suggests it should work in 8.1.5 and later.

regards, tom lane

#4Yonatan Ben-Nes
yonatan@epoch.co.il
In reply to: Oleg Bartunov (#2)
Re: Tsearch2 can't be checked for equality?

Well I got version 8.1.4 here and no option for upgrade... never mind I'll
solve my problem in a different way.

Thanks a lot,
Ben-Nes Yonatan

Show quoted text

On 3/25/07, Oleg Bartunov <oleg@sai.msu.su> wrote:

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@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83