Extending range type operators to cope with elements

From: Esteban Zimanyi <ezimanyi(at)ulb(dot)ac(dot)be>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Extending range type operators to cope with elements
Date: 2019-09-13 06:50:18
Message-ID: CAPqRbE6g91bOmaZDAYOhPR1s-ZQ3Uf_Wki0mB-K1ZJG43nXZtA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dear all

While developing MobilityDB we needed to extend the range type operators so
they cope with elements. In the same way that currently the range types
support both
- @> contains range/element
- <@ element/range is contained by
we extended the left (<<), overleft (&<), right (>>), and overright (&>)
operators so they can cope with both elements and ranges at the left- or
right-hand side. These can be seen in github
https://github.com/ULB-CoDE-WIT/MobilityDB/blob/master/src/rangetypes_ext.c

If you think that these extensions could be useful for the community at
large, I can prepare a PR. Please let me know.

Esteban

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Konstantin Knizhnik 2019-09-13 07:09:27 Re: Why overhead of SPI is so large?
Previous Message Michael Paquier 2019-09-13 06:48:51 Re: [HACKERS] CLUSTER command progress monitor