Re: [HACKERS] Strange behavior on to_tsquery()

2011-11-04 Thread Rodrigo Hjort
2011/11/3 Tom Lane > I wrote: > > (Just offhand, it rather looks like dict_int and dict_xsyn are both > > assuming that palloc will give back zeroed space, which is bogus...) > > Yeah, this is definitely broken. Patches committed; thanks for the > report. > > http://git.postgresql.org/gitweb/?p=p

Re: [HACKERS] Strange behavior on to_tsquery()

2011-11-03 Thread Tom Lane
I wrote: > (Just offhand, it rather looks like dict_int and dict_xsyn are both > assuming that palloc will give back zeroed space, which is bogus...) Yeah, this is definitely broken. Patches committed; thanks for the report. http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=e3e308

Re: [HACKERS] Strange behavior on to_tsquery()

2011-11-03 Thread Tom Lane
Rodrigo Hjort 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 cert

[HACKERS] Strange behavior on to_tsquery()

2011-11-03 Thread Rodrigo Hjort
Hello PG hackers, I created a *custom dictionary* (based on dict_int) and a search configuration and a strange behavior happens on *PostgreSQL 8.4.9*. When I invoke the following instruction several times,* to_tsquery()*returns distinct results: catalog=> SELECT to_tsquery('custom', 'pi'); to_t