Re: index scan with functional indexes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: index scan with functional indexes
Дата
Msg-id 24803.1075226571@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: index scan with functional indexes  (Dave Cramer <pg@fastcrypt.com>)
Ответы Re: index scan with functional indexes  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-hackers
Dave Cramer <pg@fastcrypt.com> writes:
> davec=# explain analyze select * from url where fn_strrev(url) like
> '%beta12.html';

Don't you need the % at the right end to have an indexable plan?
I suspect that both of your tries so far are actually semantically
wrong, and that what you intend is

select * from url where fn_strrev(url) like fn_strrev('%beta12.html');
        regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: index scan with functional indexes
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Another optimizer question