Re: inability to restore infinity values via psql or pg_restore

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: inability to restore infinity values via psql or pg_restore
Дата
Msg-id 8223.980290634@sss.pgh.pa.us
обсуждение исходный текст
Ответ на inability to restore infinity values via psql or pg_restore  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
pgsql-bugs@postgresql.org writes:
> inability to restore infinity values via psql or pg_restore

I don't think this has anything to do with a dump/restore problem.
What it is is a problem with dealing with overflow in timestamp
calculations.

In current sources:

regression=# select timestamp 'infinity' - timestamp '-infinity';
                  ?column?
---------------------------------------------
 2147483647 days 2147483647:2147483647:00inf
(1 row)

AFAICT we don't have a concept of "infinity" for intervals, so this
should raise an error instead of returning a bogus value.

            regards, tom lane

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

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: inability to restore infinity values via psql or pg_restore
Следующее
От: Praveen Shetty
Дата:
Сообщение: Problem...