Re: [GENERAL] Question on Trigram GIST indexes

2013-01-22 Thread Merlin Moncure
On Tue, Jan 22, 2013 at 8:07 AM, Merlin Moncure wrote: > On Sat, Jan 5, 2013 at 12:20 PM, ERR ORR wrote: >> >> @Moderators: I am reposting this because the original from 22 December >> apparently didn't arrive on the list. >> >> I was trying to make Postgresql use a trigram gist index on a varcha

Re: [GENERAL] Question on Trigram GIST indexes

2013-01-22 Thread Merlin Moncure
On Sat, Jan 5, 2013 at 12:20 PM, ERR ORR wrote: > > @Moderators: I am reposting this because the original from 22 December > apparently didn't arrive on the list. > > I was trying to make Postgresql use a trigram gist index on a varchar field, > but to no avail. > > Specifically, I was trying to r

Re: [GENERAL] Question on Trigram GIST indexes

2013-01-22 Thread Johann Spies
On 5 January 2013 20:20, ERR ORR wrote: > > > > 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. > (I am looking for names like 'SEATTLE

Re: [GENERAL] Question on Trigram GIST indexes

2012-12-22 Thread Kevin Grittner
ERR ORR wrote: > Specifically, I was trying to replicate what is done in this blog post: > http://www.postgresonline.com/journal/archives/212-PostgreSQL-9.1-Trigrams-teaching-LIKE-and-ILIKE-new-tricks.html > Queries which use "WHERE "TST_PAYLOAD" LIKE 'SEAT%'" go to the btree index > as it should