#33665: Add support for Postgres multirange
----------------------------------+--------------------------------------
     Reporter:  Tom Carrick       |                    Owner:  (none)
         Type:  New feature       |                   Status:  new
    Component:  contrib.postgres  |                  Version:  dev
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Unreviewed
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------
Description changed by Tom Carrick:

Old description:

> Postgres 14 adds various multirange data types corresponding to the
> existing range types: https://www.postgresql.org/docs/14/rangetypes.html
>
> e.g.:
>

> {{{
> select nummultirange(numrange(null, 2), numrange(4, 5), numrange(8, 9));
> }}}
>
> Gives `"{(,2),[4,5),[8,9)}"`.
>

> I would like to have some support for these in Django.

New description:

 Postgres 14 adds various multirange data types corresponding to the
 existing range types: https://www.postgresql.org/docs/14/rangetypes.html

 e.g.:


 {{{
 select nummultirange(numrange(null, 2), numrange(4, 5), numrange(8, 9));
 }}}

 Gives `"{(,2),[4,5),[8,9)}"`.


 I would like to have some support for these in Django.

 One use case: an app that finds time for meetings. Each user submits
 ranges of times they're available on a calendar and the app suggests times
 that works for everyone / the most people.

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33665#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701806acbebea-3a24b6d0-3cb0-4d56-9cb7-e554da656277-000000%40eu-central-1.amazonses.com.

Reply via email to