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

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

[GENERAL] Question on Trigram GIST indexes

2013-01-05 Thread ERR ORR
@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 replicate what is done in this blog post: http://www.postgresonl

Fwd: [GENERAL] Question on Trigram GIST indexes

2013-01-02 Thread ERR ORR
(forwarded to pgsql-general after it went to Kevin Grittner alone) On 22 December 2012 22:46, Kevin Grittner wrote: > 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-teac

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

[GENERAL] Question on Trigram GIST indexes

2012-12-22 Thread ERR ORR
I was trying to make Postgresql use a trigram gist index on a varchar field, but to no avail. 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 I use Postgresq