Re: Why does a simple query not use an obvious index?

Поиск
Список
Период
Сортировка
От Mr Pink
Тема Re: Why does a simple query not use an obvious index?
Дата
Msg-id 20040830020954.3596.qmail@web41110.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: Why does a simple query not use an obvious index?  (Greg Stark <gsstark@mit.edu>)
Ответы Re: Why does a simple query not use an obvious index?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
--- Greg Stark <gsstark@mit.edu> wrote:

>
> Mr Pink <mr_pink_is_the_only_pro@yahoo.com> writes:
>
> > AFAIK postgres doesn't peek at values used in a query when optimizing
>
> Of course it does.

But not ones returned by a function such as now(), or when you use bind variables, as Tom aptly
explained.

That's what I meant by 'peek'. Interestingly enough Oracle does that, it's inline with their
policy of recommending the use of bind variables. Perhaps postgres could use such a feature some
day.





__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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

Предыдущее
От: Russell Smith
Дата:
Сообщение: Re: Query performance problem in 8.0.0beta1
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Why does a simple query not use an obvious index?