Re: 'infinity'::Interval should be added

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: 'infinity'::Interval should be added
Дата
Msg-id CA+TgmoZdo0y281k1QpCLVcUo9jCp8KSDWO3WHg2vZJRu1UKTPg@mail.gmail.com
обсуждение исходный текст
Ответ на 'infinity'::Interval should be added  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: 'infinity'::Interval should be added  (Isaac Morland <isaac.morland@gmail.com>)
Список pgsql-hackers
On Thu, Dec 13, 2018 at 9:42 AM Simon Riggs <simon@2ndquadrant.com> wrote:
> At present we have a timestamp of 'infinity' and infinite ranges, but no infinite interval
>
> SELECT 'infinity'::timestamp;
> works
>
> SELECT 'infinity'::interval;
> ERROR:  invalid input syntax for type interval: "infinity"
>
> Seems a strange anomaly that we should fix.

Why?  I consider it somewhat of a wart that timestamps allow infinity
- it adds special case coding all over the place.  Allowing intervals
to be infinite as well seems like it'll just create more special cases
without really solving anything.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: Ryu floating point output patch
Следующее
От: Isaac Morland
Дата:
Сообщение: Re: ExecBuildGroupingEqual versus collations