Re: Conversion to 8.3

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Conversion to 8.3
Дата
Msg-id 14048.1207408907@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Conversion to 8.3  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Ответы Re: Conversion to 8.3
Список pgsql-general
"Scott Marlowe" <scott.marlowe@gmail.com> writes:
> what type is new.ontime ??   timestamp or interval.  I would expect it
> to be an interval.  But intervals are either negative or positive, not
> "ago" unless that's something peculiar to 7.4 that I've long since
> forgotten.

No, it's still around:

regression=# select '-1 day'::interval;
 interval
----------
 -1 days
(1 row)

regression=# set datestyle = postgres;
SET
regression=# select '-1 day'::interval;
  interval
-------------
 @ 1 day ago
(1 row)

The most bletcherous aspect of Terry's original coding is that it fails
entirely, and silently, if the DateStyle setting isn't what it's
assuming...

            regards, tom lane

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

Предыдущее
От: Glyn Astill
Дата:
Сообщение: Re: ERROR: XX000: cache lookup failed for relation
Следующее
От: "Anton Melser"
Дата:
Сообщение: Re: database 1.2G, pg_dump 73M?!