Re: Fwd: [GENERAL] Question on Trigram GIST indexes

2013-01-23 Thread ERR ORR
* I think it "should" use that index based on trying to follow that exercise. * The part about changing the collation was an idea in the course of trying out different things. ** enable_seqscan* is off, and the *sharedmem* and *temp_buffers* are set so high that most things happen in RAM. I wonder

Re: Fwd: [GENERAL] Question on Trigram GIST indexes

2013-01-22 Thread Tom Lane
ERR ORR writes: >> Queries which use "WHERE "TST_PAYLOAD" LIKE 'SEAT%'" go to the btree >> index as it should. >> Queries which use "WHERE "TST_PAYLOAD" LIKE '%EAT%'" *should* use the >> GIST index but do a full table scan instead. Are you sure it "should" use the index for that? That query does