pgsql: Improve "out of range" error messages for GUCs.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve "out of range" error messages for GUCs.
Date: 2024-04-23 15:53:03
Message-ID: E1rzIS6-003WZN-QG@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2024-04-23 15:55:02 pgsql: Fix code for probing availability of AVX-512.
Previous Message Andrew Dunstan 2024-04-23 15:33:51 Re: pgsql: Introduce "builtin" collation provider.