On 6/13/21 8:26 AM, Jonathan S. Katz wrote: > One question: if I were to make a custom multirange type (e.g. let's say > I use "inet" to make "inetrange" and then a "inetmultirange") will this > method still work? It seems so, but I wanted clarify.
I went ahead and answered this myself: "yes": CREATE TYPE inetrange AS RANGE (SUBTYPE = inet); SELECT unnest(inetmultirange(inetrange('192.168.1.1', '192.168.1.5'), inetrange('192.168.1.7', '192.168.1.10'))); unnest ---------------------------- [192.168.1.1,192.168.1.5) [192.168.1.7,192.168.1.10) (2 rows) Awesome stuff. Jonathan
OpenPGP_signature
Description: OpenPGP digital signature