--- Greg Stark <[EMAIL PROTECTED]> wrote: > > Mr Pink <[EMAIL PROTECTED]> 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 ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org