Re: After Upgrade from 8.2.6 to 8.3.6: function to_timestamp does not exist - Mailing list pgsql-general

From Tom Lane
Subject Re: After Upgrade from 8.2.6 to 8.3.6: function to_timestamp does not exist
Date
Msg-id 28960.1236355473@sss.pgh.pa.us
Whole thread Raw
In response to Re: After Upgrade from 8.2.6 to 8.3.6: function to_timestamp does not exist  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-general
Scott Marlowe <scott.marlowe@gmail.com> 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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Performance of subselects
Next
From: Thom Brown
Date:
Subject: Re: Installing a module for PostgreSQL