Incorrect and missing docs for range_intersect_agg
Hi all,
range_intersect_agg is documented to return anymultirange (on this
page[1]https://www.postgresql.org/docs/current/functions-aggregate.html), but it actually returns a range.
In addition, range_intersect_agg also accepts a multirange as its
parameter, but that's not documented on the same page. Note that range_agg
does *not* accept a multirange (possibly already added for PG15, see
this[2]https://www.mail-archive.com/pgsql-hackers@lists.postgresql.org/msg105057.html).
Thanks,
Shay
[1]: https://www.postgresql.org/docs/current/functions-aggregate.html
[2]: https://www.mail-archive.com/pgsql-hackers@lists.postgresql.org/msg105057.html
https://www.mail-archive.com/pgsql-hackers@lists.postgresql.org/msg105057.html
Shay Rojansky <roji@roji.org> writes:
range_intersect_agg is documented to return anymultirange (on this
page[1]), but it actually returns a range.
The form with anyrange input, yeah.
In addition, range_intersect_agg also accepts a multirange as its
parameter, but that's not documented on the same page.
Hmm, this was fixed recently in HEAD, but it should have been
back-patched to v14 and was not.
Will fix, thanks for noticing!
regards, tom lane