Re: tsvector/tsearch equality and/or portability issue

From: Phil Frost <indigo(at)bitglue(dot)com>
To: Teodor Sigaev <teodor(at)sigaev(dot)ru>
Cc: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: tsvector/tsearch equality and/or portability issue
Date: 2006-08-28 13:32:26
Message-ID: 20060828133226.GA9938@unununium.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Aug 24, 2006 at 09:40:13PM +0400, Teodor Sigaev wrote:
> >devel=# select 'blah foo bar'::tsvector = 'blah foo bar'::tsvector;
> > ?column?
> >----------
> > f
> >(1 row)
>
> Fixed in 8.1 and HEAD. Thank you

Things still seem to be broken for me. Among other things, the script at
<http://unununium.org/~indigo/testvectors.sql.bz2> fails. It performs two
tests, comparing 1000 random vectors with positions and random weights, and
comparing the same vectors, but stripped. Oddly, the unstripped comparisons all
pass, which is not consistant with what I am seeing in my database. However,
I'm yet unable to reproduce those problems.

It's worth noting that in running this script I have seen the number of
failures change, which seems to indicate that some uninitialized memory
is still being compared.

test=# \i testvectors.sql
BEGIN
CREATE FUNCTION
CREATE TABLE
total vectors in test set
---------------------------
1000
(1 row)

failing unstripped equality
-----------------------------
0
(1 row)

failing stripped equality
---------------------------
389
(1 row)

ROLLBACK
test=#

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2006-08-28 13:57:43 Re: integration of pgcluster into postgresql
Previous Message Zdenek Kotala 2006-08-28 12:03:22 Re: pg_upgrade: What is changed?