Thread

Commits

  1. Doc: fix missing/bogus documentation of range_intersect_agg().

  1. Incorrect and missing docs for range_intersect_agg

    Shay Rojansky <roji@roji.org> — 2022-05-27T21:35:10Z

    Hi all,
    
    range_intersect_agg is documented to return anymultirange (on this
    page[1]), 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]).
    
    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
    
  2. Re: Incorrect and missing docs for range_intersect_agg

    Tom Lane <tgl@sss.pgh.pa.us> — 2022-05-29T17:18:29Z

    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