mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Message wording improvements
This commit is contained in:
@@ -171,13 +171,13 @@ hex_fail \\x{hexdigit}{0,1}
|
||||
|
||||
<xnq,xq,xvq>{unicode}*{unicodefail} {
|
||||
jsonpath_yyerror(NULL, escontext,
|
||||
"invalid unicode sequence");
|
||||
"invalid Unicode escape sequence");
|
||||
yyterminate();
|
||||
}
|
||||
|
||||
<xnq,xq,xvq>{hex_fail} {
|
||||
jsonpath_yyerror(NULL, escontext,
|
||||
"invalid hex character sequence");
|
||||
"invalid hexadecimal character sequence");
|
||||
yyterminate();
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ hex_fail \\x{hexdigit}{0,1}
|
||||
|
||||
<xq,xvq><<EOF>> {
|
||||
jsonpath_yyerror(NULL, escontext,
|
||||
"unexpected end of quoted string");
|
||||
"unterminated quoted string");
|
||||
yyterminate();
|
||||
}
|
||||
|
||||
@@ -554,7 +554,7 @@ parsejsonpath(const char *str, int len, struct Node *escontext)
|
||||
jsonpath_scanner_init(str, len);
|
||||
|
||||
if (jsonpath_yyparse((void *) &parseresult, escontext) != 0)
|
||||
jsonpath_yyerror(NULL, escontext, "bogus input"); /* shouldn't happen */
|
||||
jsonpath_yyerror(NULL, escontext, "invalid input"); /* shouldn't happen */
|
||||
|
||||
jsonpath_scanner_finish();
|
||||
|
||||
@@ -611,7 +611,7 @@ addUnicodeChar(int ch, struct Node *escontext)
|
||||
else if (!pg_unicode_to_server_noerror(ch, (unsigned char *) cbuf))
|
||||
ereturn(escontext, false,
|
||||
(errcode(ERRCODE_SYNTAX_ERROR),
|
||||
errmsg("could not convert unicode to server encoding")));
|
||||
errmsg("could not convert Unicode to server encoding")));
|
||||
addstring(false, cbuf, strlen(cbuf));
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -2870,7 +2870,8 @@ icu_validate_locale(const char *loc_str)
|
||||
ereport(elevel,
|
||||
(errmsg("could not get language from ICU locale \"%s\": %s",
|
||||
loc_str, u_errorName(status)),
|
||||
errhint("To disable ICU locale validation, set parameter icu_validation_level to DISABLED.")));
|
||||
errhint("To disable ICU locale validation, set the parameter \"%s\" to \"%s\".",
|
||||
"icu_validation_level", "disabled")));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2898,7 +2899,8 @@ icu_validate_locale(const char *loc_str)
|
||||
ereport(elevel,
|
||||
(errmsg("ICU locale \"%s\" has unknown language \"%s\"",
|
||||
loc_str, lang),
|
||||
errhint("To disable ICU locale validation, set parameter icu_validation_level to DISABLED.")));
|
||||
errhint("To disable ICU locale validation, set the parameter \"%s\" to \"%s\".",
|
||||
"icu_validation_level", "disabled")));
|
||||
|
||||
/* check that it can be opened */
|
||||
collator = pg_ucol_open(loc_str);
|
||||
|
||||
@@ -1002,10 +1002,10 @@ struct config_bool ConfigureNamesBool[] =
|
||||
},
|
||||
{
|
||||
{"enable_presorted_aggregate", PGC_USERSET, QUERY_TUNING_METHOD,
|
||||
gettext_noop("Enables the planner's ability to produce plans which "
|
||||
gettext_noop("Enables the planner's ability to produce plans that "
|
||||
"provide presorted input for ORDER BY / DISTINCT aggregate "
|
||||
"functions."),
|
||||
gettext_noop("Allows the query planner to build plans which provide "
|
||||
gettext_noop("Allows the query planner to build plans that provide "
|
||||
"presorted input for aggregate functions with an ORDER BY / "
|
||||
"DISTINCT clause. When disabled, implicit sorts are always "
|
||||
"performed during execution."),
|
||||
@@ -4909,8 +4909,8 @@ struct config_enum ConfigureNamesEnum[] =
|
||||
{"debug_parallel_query", PGC_USERSET, DEVELOPER_OPTIONS,
|
||||
gettext_noop("Forces the planner's use parallel query nodes."),
|
||||
gettext_noop("This can be useful for testing the parallel query infrastructure "
|
||||
"by forcing the planner to generate plans which contains nodes "
|
||||
"which perform tuple communication between workers and the main process."),
|
||||
"by forcing the planner to generate plans that contain nodes "
|
||||
"that perform tuple communication between workers and the main process."),
|
||||
GUC_NOT_IN_SAMPLE | GUC_EXPLAIN
|
||||
},
|
||||
&debug_parallel_query,
|
||||
|
||||
Reference in New Issue
Block a user