Re: What type of index do I need for this JOIN?

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: What type of index do I need for this JOIN?
Дата
Msg-id 1376486081.24824.YahooMailNeo@web162903.mail.bf1.yahoo.com
обсуждение исходный текст
Ответ на Re: What type of index do I need for this JOIN?  (Robert James <srobertjames@gmail.com>)
Ответы Re: What type of index do I need for this JOIN?  (Robert James <srobertjames@gmail.com>)
Список pgsql-general
Robert James <srobertjames@gmail.com> wrote:

> I'm confused: What's the difference between
>   col LIKE  'foo%'
> and
>   col LIKE f1 || '%'
> ?

The planner knows that 'foo%' doesn't start with a wildcard.

> Either way, it's anchored to the beginning of the string.

Not necessarily.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


В списке pgsql-general по дате отправления:

Предыдущее
От: Kevin Grittner
Дата:
Сообщение: Re: Materializing a view by hand
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Please help