Re: tsvector/tsearch equality and/or portability issue - Mailing list pgsql-hackers

From Phil Frost
Subject Re: tsvector/tsearch equality and/or portability issue
Date
Msg-id 20060828133226.GA9938@unununium.org
Whole thread Raw
In response to Re: tsvector/tsearch equality and/or portability issue  (Teodor Sigaev <teodor@sigaev.ru>)
Responses Re: tsvector/tsearch equality and/or portability issue
List 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 TABLEtotal vectors in test set 
---------------------------                     1000
(1 row)
failing unstripped equality 
-----------------------------                          0
(1 row)
failing stripped equality 
---------------------------                      389
(1 row)

ROLLBACK
test=# 


pgsql-hackers by date:

Previous
From: Zdenek Kotala
Date:
Subject: Re: pg_upgrade: What is changed?
Next
From: "Jim Nasby"
Date:
Subject: Re: integration of pgcluster into postgresql