public inbox for [email protected]
help / color / mirror / Atom feedFrom: Eugen Konkov <[email protected]>
To: Tom Lane <[email protected]>
Cc: [email protected]
Subject: Re: Why 'infinity' is not in range '[2019-01-02, infinity]'?
Date: Sat, 26 Oct 2019 16:15:29 +0300
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
Today I got next ambiguous:
select tstzrange( 'infinity', null );
tstzrange
-------------
[infinity,)
(1 row)
[DOC](https://www.postgresql.org/docs/12/rangetypes.html) stated:
>if the upper bound of the range is omitted, then all points greater than the lower bound are included in the range.
>This is equivalent to considering that the upper bound is “plus infinity”, respectively.
Thus I can write, can not?
select tstzrange( 'infinity', 'infinity' );
tstzrange
-------------
empty
(1 row)
But thus it is not not equivalent.
>But note that these infinite values are never values of the range's element type, and can never be part of the range
Thus if 'infinite values are never values of the range' then
“infinity” can not be just another value of any range type
This conclusion contradicts next doc paragraph:
>Also, some element types have a notion of “infinity”, but that is just another value so far as the range type mechanisms are concerned.
errr... mechanism of date ranges violates basic rules for 'Infinite
(Unbounded) Ranges'?
--
Best regards,
Eugen Konkov
view thread (9+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Why 'infinity' is not in range '[2019-01-02, infinity]'?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox