diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-03-10 13:18:17 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-03-10 13:18:17 -0400 |
commit | 28a65fc3607a0f45c39a9418f747459bb4f1592a (patch) | |
tree | b52cead932456b520410353fa0c5e90312c8760a /src/test | |
parent | ac75959cdc073a09a0d3d649fb922d90e1df4c61 (diff) |
Include GUC's unit, if it has one, in out-of-range error messages.
This should reduce confusion in cases where we've applied a units
conversion, so that the number being reported (and the quoted range
limits) are in some other units than what the user gave in the
setting we're rejecting.
Some of the changes here assume that float GUCs can have units,
which isn't true just yet, but will be shortly.
Discussion: https://postgr.es/m/3811.1552169665@sss.pgh.pa.us
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/regress/expected/guc.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/regress/expected/guc.out b/src/test/regress/expected/guc.out index 5c57a6656f5..bef40d47177 100644 --- a/src/test/regress/expected/guc.out +++ b/src/test/regress/expected/guc.out @@ -510,7 +510,7 @@ SELECT '2006-08-13 12:34:56'::timestamptz; SET seq_page_cost TO 'NaN'; ERROR: parameter "seq_page_cost" requires a numeric value SET vacuum_cost_delay TO '10s'; -ERROR: 10000 is outside the valid range for parameter "vacuum_cost_delay" (0 .. 100) +ERROR: 10000 ms is outside the valid range for parameter "vacuum_cost_delay" (0 .. 100) SET geqo_selection_bias TO '-infinity'; ERROR: -Infinity is outside the valid range for parameter "geqo_selection_bias" (1.5 .. 2) -- |