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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: After Upgrade from 8.2.6 to 8.3.6: function to_timestamp does not exist
Дата
Msg-id 28960.1236355473@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: After Upgrade from 8.2.6 to 8.3.6: function to_timestamp does not exist  (Scott Marlowe <scott.marlowe@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Performance of subselects
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Installing a module for PostgreSQL