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: Improve "out of range" error messages for GUCs.
Date: Tue, 23 Apr 2024 15:53:03 +0000
Message-ID: <E1rzIS6-003WZN-QG@gemulon.postgresql.org> (raw)

Improve "out of range" error messages for GUCs.

If the GUC has a unit, label the minimum and maximum values
with the unit explicitly.  Per suggestion from Jian He.

Discussion: https://postgr.es/m/CACJufxFJo6FyVg9W8yvNAxbjP+EJ9wieE9d9vw5LpPzyLnLLOQ@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/utils/misc/guc.c      | 30 ++++++++++++++++++++----------
src/test/regress/expected/guc.out |  2 +-
2 files changed, 21 insertions(+), 11 deletions(-)



view thread (2+ messages)

Message-ID: <E1rzIS6-003WZN-QG@gemulon.postgresql.org>
Permalink:  ../E1rzIS6-003WZN-QG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rzIS6-003WZN-QG@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: Improve "out of range" error messages for GUCs.
  In-Reply-To: <E1rzIS6-003WZN-QG@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