Re: 'infinity'::Interval should be added

Поиск
Список
Период
Сортировка
От Chapman Flack
Тема Re: 'infinity'::Interval should be added
Дата
Msg-id 5C12650A.50802@anastigmatix.net
обсуждение исходный текст
Ответ на 'infinity'::Interval should be added  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: 'infinity'::Interval should be added  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 12/13/18 04:41, Simon Riggs wrote:
> SELECT 'infinity'::timestamp;
> works
> 
> SELECT 'infinity'::interval;
> ERROR:  invalid input syntax for type interval: "infinity"

... and if that is made to work, perhaps then arithmetic should be
updated as well, with this producing an infinite interval result:

SELECT timestamptz 'infinity' - current_timestamp;
ERROR:  cannot subtract infinite timestamps

ISO (2011 draft) seems to have nothing to say about infinity, for
datetimes or intervals.

-Chap


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

Предыдущее
От: David Steele
Дата:
Сообщение: Re: alternative to PG_CATCH
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Reorganize collation lookup time and place