Re: Strange (?) Index behavior?

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: Strange (?) Index behavior?
Дата
Msg-id 1099667258.1647.827.camel@home
обсуждение исходный текст
Ответ на Strange (?) Index behavior?  (Allen Landsidel <alandsidel@gmail.com>)
Ответы Re: Strange (?) Index behavior?  (Allen Landsidel <alandsidel@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Matt Clark"
Дата:
Сообщение: Re: Strange (?) Index behavior?
Следующее
От: Allen Landsidel
Дата:
Сообщение: Re: Strange (?) Index behavior?