'infinity'::Interval should be added

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: 'infinity'::Interval should be added
Date: 2018-12-13 09:41:39
Message-ID: CANP8+jKTxQh4Mj+U3mWO3JHYb11SeQX9FW8SENrGbTdVxu6NNA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

--
Simon Riggs http://www.2ndQuadrant.com/
<http://www.2ndquadrant.com/>
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro HORIGUCHI 2018-12-13 09:42:33 Re: allow online change primary_conninfo
Previous Message Simon Riggs 2018-12-13 09:23:12 Row Visibility and Table Access Methods