ts_rewrite bug? - Mailing list pgsql-hackers

From Tom Lane
Subject ts_rewrite bug?
Date
Msg-id 14780.1192674853@sss.pgh.pa.us
Whole thread Raw
List pgsql-hackers
Hmm ... playing a bit more with the example I was just on about:

regression=# create table ts_subst(target tsquery, subst tsquery);
CREATE TABLE
regression=# insert into ts_subst values('a', 'foo|bar');
INSERT 0 1
regression=# insert into ts_subst values('bar', 'baz');
INSERT 0 1
regression=# select ts_rewrite('a & b'::tsquery, 'select target, subst from ts_subst');      ts_rewrite        
-------------------------'b' & ( 'foo' | 'bar' )
(1 row)

Shouldn't I have gotten 'b' & ( 'foo' | 'baz' ) ???
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: ts_rewrite aggregate API seems mighty ugly
Next
From: Josh Berkus
Date:
Subject: max_prepared_transactions default ... why 5?