Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C38289F9B05 for ; Mon, 20 Nov 2006 05:09:38 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 71376-05 for ; Mon, 20 Nov 2006 05:09:35 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.196]) by postgresql.org (Postfix) with ESMTP id DB96C9F9424 for ; Mon, 20 Nov 2006 05:09:34 -0400 (AST) Received: by nz-out-0102.google.com with SMTP id i11so824235nzh for ; Mon, 20 Nov 2006 01:09:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=q1ghfUAuHc9r1C8KxtQ0ru1lbcY1nh68S0U4hEjnAvTfd6KMHrkan2ySfGtHvJhx8/2lQvUGRG9Rn6SMRb8buEfLNZuyxQv4PmQusvkXN3Bg78byGwnxIwvhzU2ohL6vBhEZpSTL6cupNZCy/lRoXpCY7eUAHUA8DfC0tO4nlOY= Received: by 10.35.10.17 with SMTP id n17mr254127pyi.1164013772963; Mon, 20 Nov 2006 01:09:32 -0800 (PST) Received: by 10.35.80.10 with HTTP; Mon, 20 Nov 2006 01:09:32 -0800 (PST) Message-ID: Date: Mon, 20 Nov 2006 14:39:32 +0530 From: "Rajesh Kumar Mallah" To: pgsql-sql@postgresql.org Subject: tsvector_eq appears to be inconsistent. MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/210 X-Sequence-Number: 26862 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)