pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Doc: improve documentation about width_bucket().
Date: Sat, 21 Jun 2025 17:02:51 +0000
Message-ID: <E1uT1cB-002iww-0i@gemulon.postgresql.org> (raw)

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 <bpeacheyhigdon@gmail.com>
Author: Robert Treat <rob@xzilla.net>
Co-authored-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Dean Rasheed <dean.a.rasheed@gmail.com>
Discussion: https://postgr.es/m/2BD74F86-5B89-4AC1-8F13-23CED3546AC1@gmail.com
Backpatch-through: 13

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ccfe3dbaa4392ec1cf50224c57eccd0f34ce8d1d

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(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1uT1cB-002iww-0i@gemulon.postgresql.org>
Permalink:  ../E1uT1cB-002iww-0i@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uT1cB-002iww-0i@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Doc: improve documentation about width_bucket().
  In-Reply-To: <E1uT1cB-002iww-0i@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox