pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: tsvector_eq appears to be inconsistent. [ SOLVED (upgrade to 8.1.5) ]
Date: Tue, 21 Nov 2006 11:39:20 +0530
Message-ID: <a97c77030611202209l260a8181i1c869d491f27cadc@mail.gmail.com> (raw)

On 11/20/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "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.)


Yes its fixed in 8.1.5

Regds
Mallah.

tradein_clients=> SELECT tsvector_eq(to_tsvector('gift'),to_tsvector('gifts'));
+-------------+
| tsvector_eq |
+-------------+
| t           |
+-------------+
(1 row)

tradein_clients=> SELECT
tsvector_eq(to_tsvector('gift'),to_tsvector('birthday gifts'));
+-------------+
| tsvector_eq |
+-------------+
| f           |
+-------------+
(1 row)

tradein_clients=> SELECT tsvector_eq(to_tsvector('gift'),to_tsvector('gifts'));
+-------------+
| tsvector_eq |
+-------------+
| t           |
+-------------+
(1 row)

tradein_clients=> SELECT version();
+--------------------------------------------------------------------------------------------------------+
|                                                version
                                  |
+--------------------------------------------------------------------------------------------------------+
| PostgreSQL 8.1.5 on i686-pc-linux-gnu, compiled by GCC gcc (GCC)
3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk) |
+--------------------------------------------------------------------------------------------------------+
(1 row)






>
> 			regards, tom lane
>



Message-ID: <a97c77030611202209l260a8181i1c869d491f27cadc@mail.gmail.com>
Permalink:  ../a97c77030611202209l260a8181i1c869d491f27cadc@mail.gmail.com/
Also on:    postgresql.org/message-id/a97c77030611202209l260a8181i1c869d491f27cadc@mail.gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mallah.rajesh@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: tsvector_eq appears to be inconsistent. [ SOLVED (upgrade to 8.1.5) ]
  In-Reply-To: <a97c77030611202209l260a8181i1c869d491f27cadc@mail.gmail.com>

* 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