Opened 2 years ago

Last modified 2 years ago

#33665 closed New feature

Add support for Postgres multirange — at Version 1

Reported by: Tom Carrick Owned by:
Component: contrib.postgres Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tom Carrick)

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.

Change History (1)

comment:1 by Tom Carrick, 2 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top