Re: index scan with functional indexes

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: index scan with functional indexes
Дата
Msg-id 20040127180203.GB22417@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: index scan with functional indexes  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-hackers
On Tue, Jan 27, 2004 at 12:41:41PM -0500, Dave Cramer wrote:

> davec=# explain analyze select * from url where fn_strrev(url) like
> '%beta12.html';

Reverse the constant too:

davec=# explain analyze select * from url where fn_strrev(url) like
fn_strrev('%beta12.html');

You won't get an indexscan if you have a % in front of the string.

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Hay quien adquiere la mala costumbre de ser infeliz" (M. A. Evans)


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: index scan with functional indexes
Следующее
От: Tom Lane
Дата:
Сообщение: Re: index scan with functional indexes