Improve "out of range" error messages for GUCs.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: bb3ca232398658291d4b1eaae12cd6e88dfc96a3
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2024-04-23T15:52:44Z
Releases: 17.0
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

Files

PathChange+/−
src/backend/utils/misc/guc.c modified +20 −10
src/test/regress/expected/guc.out modified +1 −1

Discussion