Re: Resources - Mailing list pgsql-sql

From jtp
Subject Re: Resources
Date
Msg-id Pine.BSF.4.21.0201111115590.6416-100000@db.akadine.com
Whole thread Raw
In response to Re: Resources  ("Nick Fankhauser" <nickf@ontko.com>)
List pgsql-sql

On Fri, 11 Jan 2002, Nick Fankhauser wrote:

> 
> > I don't beleive indexes will improve SELECT using LIKE.
> 
> I wondered about that too, so I did a test using a database I'm working
> with. The results indicate that it helps substantially- here is my terminal
> log file:

[snip]

an interesting (?) addendum to this.  Yes it does help substantially,
unless your wildcharacter has characters after it.

> staging=# explain select count(*) from actor where actor_full_name like
> 'A%';

try: explain select count(*) from actor where actor_full_name like '%a';

not too relevant for searches here, but occasionally it could be.  my
situation was having a merged last name + zipcode field, instead of having
two separately indexed fields.  Found out i couldn't do the job i wanted
that way.





pgsql-sql by date:

Previous
From: Frank Bax
Date:
Subject: Re: Resources
Next
From: "Nick Fankhauser"
Date:
Subject: Re: Resources