Re: [SQL] Index Usage and Running Times by FullTextSearch with prefix matching

2013-06-13 Thread Tom Lane
rawi writes: > And querying: FTS with prefix matching: > SELECT count(a) > FROM t1 > WHERE a_tsvector @@ to_tsquery('aaa:* & b:* & c:* & d:*') > (RESULT: count: 619) > Total query runtime: 21266 ms. FWIW, I get fairly decent performance for cases like this in HEAD (at least with a GIN index; GI

[SQL] Index Usage and Running Times by FullTextSearch with prefix matching

2013-06-13 Thread rawi
Hi I tested the following: CREATE TABLE t1 ( id serial NOT NULL, a character varying(125), a_tsvector tsvector, CONSTRAINT t1_pkey PRIMARY KEY (id) ); INSERT INTO t1 (a, a_tsvector) VALUES ('o,p,f,j,z,j', to_tsvector('o,p,f,j,z,j'); CREAT