Re: Strange (?) Index behavior? - Mailing list pgsql-performance

From Rod Taylor
Subject Re: Strange (?) Index behavior?
Date
Msg-id 1099667258.1647.827.camel@home
Whole thread Raw
In response to Strange (?) Index behavior?  (Allen Landsidel <alandsidel@gmail.com>)
Responses Re: Strange (?) Index behavior?  (Allen Landsidel <alandsidel@gmail.com>)
List pgsql-performance
> It seems to me that a query saying "SELECT column FROM table WHERE
> column LIKE 'AA%';" should be just as fast or very close to the first
> case up above.  However, explain tells me that this query is not using
> the index above, which is what's not making sense to me.

It looks for an exact expression match, and doesn't know about values
which are equal.

You can provide both clauses.

WHERE column LIKE 'A%' and column LIKE 'AA%';



pgsql-performance by date:

Previous
From: "Matt Clark"
Date:
Subject: Re: Strange (?) Index behavior?
Next
From: Allen Landsidel
Date:
Subject: Re: Strange (?) Index behavior?