From: | Paul A Jungwirth <pj(at)illuminatedcomputing(dot)com> |
---|---|
To: | Jeff Davis <pgsql(at)j-davis(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: range_agg |
Date: | 2019-08-17 17:47:08 |
Message-ID: | CA+renyUdm0YQPT=fQDbk4F=LgbPzNo4cAj_4wrzfdmnmdcj-kw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Jul 8, 2019 at 9:46 AM Paul A Jungwirth
<pj(at)illuminatedcomputing(dot)com> wrote:
> - A multirange type is an extra thing you get when you define a range
> (just like how you get a tstzrange[]). Therefore....
I've been able to make a little more progress on multiranges the last
few days, but it reminded me of an open question I've had for awhile:
typmods! I see places in the range code that gesture toward supporting
typmods, but none of the existing range types permit them. For
example:
postgres=# select '5'::numeric(4,2);
numeric
---------
5.00
(1 row)
postgres=# select '[1,4)'::numrange(4,2);
ERROR: type modifier is not allowed for type "numrange"
LINE 1: select '[1,4)'::numrange(4,2);
So I'm wondering how seriously I should take this for multiranges? I
guess if a range type did support typmods, it would just delegate to
the underlying element type for their meaning, and so a multirange
should delegate it too? Is there any historical discussion around
typemods on range types?
Thanks!
Paul
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2019-08-17 17:52:17 | Re: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS) |
Previous Message | Tom Lane | 2019-08-17 17:41:18 | max_parallel_workers can't actually be set? |