mirror of
https://github.com/postgres/postgres.git
synced 2025-11-18 02:02:55 +03:00
Message style improvements
This commit is contained in:
@@ -3590,14 +3590,15 @@ DCH_from_char(FormatNode *node, const char *in, TmFromChar *out,
|
||||
if (matched < 2)
|
||||
ereturn(escontext,,
|
||||
(errcode(ERRCODE_INVALID_DATETIME_FORMAT),
|
||||
errmsg("invalid input string for \"Y,YYY\"")));
|
||||
errmsg("invalid value \"%s\" for \"%s\"",
|
||||
s, "Y,YYY")));
|
||||
|
||||
/* years += (millennia * 1000); */
|
||||
if (pg_mul_s32_overflow(millennia, 1000, &millennia) ||
|
||||
pg_add_s32_overflow(years, millennia, &years))
|
||||
ereturn(escontext,,
|
||||
(errcode(ERRCODE_DATETIME_FIELD_OVERFLOW),
|
||||
errmsg("value for \"Y,YYY\" in source string is out of range")));
|
||||
errmsg("value for \"%s\" in source string is out of range", "Y,YYY")));
|
||||
|
||||
if (!from_char_set_int(&out->year, years, n, escontext))
|
||||
return;
|
||||
|
||||
@@ -1028,7 +1028,7 @@ struct config_bool ConfigureNamesBool[] =
|
||||
},
|
||||
{
|
||||
{"enable_distinct_reordering", PGC_USERSET, QUERY_TUNING_METHOD,
|
||||
gettext_noop("Enables reordering of DISTINCT pathkeys."),
|
||||
gettext_noop("Enables reordering of DISTINCT keys."),
|
||||
NULL,
|
||||
GUC_EXPLAIN
|
||||
},
|
||||
@@ -4837,7 +4837,7 @@ struct config_string ConfigureNamesString[] =
|
||||
{
|
||||
{"ssl_groups", PGC_SIGHUP, CONN_AUTH_SSL,
|
||||
gettext_noop("Sets the group(s) to use for Diffie-Hellman key exchange."),
|
||||
gettext_noop("Multiple groups can be specified using colon-separated list."),
|
||||
gettext_noop("Multiple groups can be specified using a colon-separated list."),
|
||||
GUC_SUPERUSER_ONLY
|
||||
},
|
||||
&SSLECDHCurve,
|
||||
|
||||
Reference in New Issue
Block a user