Search Postgresql Archives

Re: After Upgrade from 8.2.6 to 8.3.6: function to_timestamp does not exist

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

 



Scott Marlowe <scott.marlowe@xxxxxxxxx> writes:
> The functionality is the same, since the now() will get rounded down
> to the date with time of 00:00:00.  So, anytime for that day will be
>> = to the output of date_trunc('day',now())

Yeah.  So actually it's sufficient to do
	a.from_datetime >= current_date
and a regular index on from_datetime would be fine for that.

			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