Doc: improve documentation about width_bucket().

Specify whether the bucket bounds are inclusive or exclusive,
and improve some other vague language.  Explain the behavior that
occurs when the "low" bound is greater than the "high" bound.
Make width_bucket_numeric's comment more like that for
width_bucket_float8, in particular noting that infinite
bounds are rejected (since they became possible in v14).

Reported-by: Ben Peachey Higdon <[email protected]>
Author: Robert Treat <[email protected]>
Co-authored-by: Tom Lane <[email protected]>
Reviewed-by: Dean Rasheed <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 13

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7a93bd5986e4b741fc3fdd8406431c77161c6d12

Modified Files
--------------
doc/src/sgml/func.sgml          | 18 ++++++++++++++----
src/backend/utils/adt/float.c   |  4 ++--
src/backend/utils/adt/numeric.c |  7 ++++---
3 files changed, 20 insertions(+), 9 deletions(-)

Reply via email to