--- Greg Stark <gsstark(at)mit(dot)edu> wrote:
>
> Mr Pink <mr_pink_is_the_only_pro(at)yahoo(dot)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