pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedtsvector_eq appears to be inconsistent.
2+ messages / 2 participants
[nested] [flat]
* tsvector_eq appears to be inconsistent.
@ 2006-11-20 09:09 Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
2006-11-20 16:50 ` Re: tsvector_eq appears to be inconsistent. Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Rajesh Kumar Mallah @ 2006-11-20 09:09 UTC (permalink / raw)
To: pgsql-sql
Hi,
I am doing equality comparisons on type tsvector using tsvector_eq.
How come a comparison that returns true before starts returning false
afterwards ? (see results of case 1 and 3)
Regds
mallah.
(1)
tradein_clients=# SELECT tsvector_eq(to_tsvector('gift'),to_tsvector('gifts'));
tsvector_eq
-----------
t
(2)
tradein_clients=# SELECT
tsvector_eq(to_tsvector('gift'),to_tsvector('birthday gifts'));
tsvector_eq
-----------
f
(3)
tradein_clients=# SELECT tsvector_eq(to_tsvector('gift'),to_tsvector('gifts'));
tsvector_eq
-----------
f
tradein_clients=# SELECT version();
version
------------------------------------------------------------------------------------------------------
PostgreSQL 8.1.3 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.1
(Mandrake Linux 9.2 3.3.1-2mdk)
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: tsvector_eq appears to be inconsistent.
2006-11-20 09:09 tsvector_eq appears to be inconsistent. Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
@ 2006-11-20 16:50 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2006-11-20 16:50 UTC (permalink / raw)
To: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>; +Cc: pgsql-sql
"Rajesh Kumar Mallah" <mallah.rajesh@gmail.com> writes:
> I am doing equality comparisons on type tsvector using tsvector_eq.
> How come a comparison that returns true before starts returning false
> afterwards ? (see results of case 1 and 3)
IIRC, Teodor fixed a number of tsvector comparison bugs in 8.1.5 ...
try updating. (You might need to REINDEX any tsearch2 indexes
afterwards, not sure.)
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-11-20 16:50 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-11-20 09:09 tsvector_eq appears to be inconsistent. Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
2006-11-20 16:50 ` Tom Lane <tgl@sss.pgh.pa.us>
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