=?utf-8?Q?Fran=C3=A7ois_Beausoleil?= <franc...@teksol.info> writes:
> While mowing the lawn, I thought that since the syntax of multi ranges is 
> similar to arrays, maybe I could use unnest(), but sadly, that was not to be 
> the case:
> # select 
> unnest('{[2021-08-02,2021-08-04],[2021-08-07,2021-08-09)}'::tsmultirange);
> ERROR:  function unnest(tsmultirange) does not exist

That's fixed for beta3:

regression=# select 
unnest('{[2021-08-02,2021-08-04],[2021-08-07,2021-08-09)}'::tsmultirange);
                    unnest                     
-----------------------------------------------
 ["2021-08-02 00:00:00","2021-08-04 00:00:00"]
 ["2021-08-07 00:00:00","2021-08-09 00:00:00")
(2 rows)


                        regards, tom lane


Reply via email to