From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Rodrigo Hjort <rodrigo(dot)hjort(at)gmail(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Strange behavior on to_tsquery() |
Date: | 2011-11-03 22:21:42 |
Message-ID: | 17700.1320358902@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Rodrigo Hjort <rodrigo(dot)hjort(at)gmail(dot)com> writes:
> I created a *custom dictionary* (based on dict_int) and a search
> configuration and a strange behavior happens on *PostgreSQL 8.4.9*.
> ...
> Therefore, when I use *@@ operator* over a *tsvector* column in my table
> the result set is not always the same.
This almost certainly means a bug in your dictionary code.
> 2) Sometimes the value returned by *to_tsquery()* has a ":*" suffix. What
> does that mean?
Prefix search request. Possibly you're forgetting to zero out the
prefix flag?
(Just offhand, it rather looks like dict_int and dict_xsyn are both
assuming that palloc will give back zeroed space, which is bogus...)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2011-11-03 22:36:03 | isolationtester patch |
Previous Message | hubert depesz lubaczewski | 2011-11-03 22:03:45 | Re: Strange problem with create table as select * from table; |