Re: BUG #12432: date_trunc returning wrong year and day

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #12432: date_trunc returning wrong year and day
Дата
Msg-id 20150105202558.GN1457@alvh.no-ip.org
обсуждение исходный текст
Ответ на BUG #12432: date_trunc returning wrong year and day  (bquirion@gmail.com)
Список pgsql-bugs
bquirion@gmail.com wrote:

> foodb=> select date_trunc('week', now() - interval '1 week');
>        date_trunc
> ------------------------
>  2013-12-30 00:00:00-08
> (1 row)
>
> foodb=> select date_trunc('week', now() - interval '2 week');
>        date_trunc
> ------------------------
>  2014-12-22 00:00:00-08
> (1 row)
>
> I'mn using postgres 8.0.3

8.0.3 was released in 2005.  The latest in the 8.0 branch, 8.0.26 was
released in 2010 containing about 600 commits with bug fixes.  At the
very least you should update to that version and see if it fixes the
problem you have.  In any case you're running a version that has been
out of support for five years now.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

В списке pgsql-bugs по дате отправления:

Предыдущее
От: bquirion@gmail.com
Дата:
Сообщение: BUG #12432: date_trunc returning wrong year and day
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #12432: date_trunc returning wrong year and day