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.
However sometimes things don't work perfectly.
To get good answers rather than just guesses we'll need two things:
. What version of postgres are you using.
. The output of EXPLAIN ANALYZE select ...
--
greg