Search Postgresql Archives

Re: Re: Why is the comparison between timestamp and date so much slower then between two dates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thomas Kellerer <spam_eater@xxxxxxx> writes:
> So the optimizer _should_ be smart enough to do the conversion only 
> once at the beginning of the statement and then use that converted 
> value during the execution of the statement without the need
> to re-evaluate it for each row. 

It's not; especially not in your originally posted case where the
up-conversion happens on the variable not the pseudo-constant.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux