Fix spelling and punctuation
Remove trailing periods from pg_log_error emitted strings as only hint and detail level error messages should be punctuated. Also reword the usage screen which was missing a word. Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Discussion: https://postgr.es/m/20231130.105223.554982964895179414.horikyota.ntt@gmail.com Discussion: https://postgr.es/m/20231130.103900.2069212175914114279.horikyota.ntt@gmail.com
This commit is contained in:
parent
c3f4a84481
commit
b3efa270b5
|
@ -1119,7 +1119,7 @@ help(const char *progname)
|
|||
" including child and partition tables\n"));
|
||||
printf(_(" --extra-float-digits=NUM override default setting for extra_float_digits\n"));
|
||||
printf(_(" --filter=FILENAME include or exclude objects and data from dump\n"
|
||||
" based expressions in FILENAME\n"));
|
||||
" based on expressions in FILENAME\n"));
|
||||
printf(_(" --if-exists use IF EXISTS when dropping objects\n"));
|
||||
printf(_(" --include-foreign-data=PATTERN\n"
|
||||
" include data of foreign tables on foreign\n"
|
||||
|
@ -18812,7 +18812,7 @@ read_dump_filters(const char *filename, DumpOptions *dopt)
|
|||
case FILTER_OBJECT_TYPE_TABLE_DATA:
|
||||
case FILTER_OBJECT_TYPE_TABLE_DATA_AND_CHILDREN:
|
||||
case FILTER_OBJECT_TYPE_TRIGGER:
|
||||
pg_log_filter_error(&fstate, _("%s filter for \"%s\" is not allowed."),
|
||||
pg_log_filter_error(&fstate, _("%s filter for \"%s\" is not allowed"),
|
||||
"include",
|
||||
filter_object_type_name(objtype));
|
||||
exit_nicely(1);
|
||||
|
@ -18851,7 +18851,7 @@ read_dump_filters(const char *filename, DumpOptions *dopt)
|
|||
case FILTER_OBJECT_TYPE_TRIGGER:
|
||||
case FILTER_OBJECT_TYPE_EXTENSION:
|
||||
case FILTER_OBJECT_TYPE_FOREIGN_DATA:
|
||||
pg_log_filter_error(&fstate, _("%s filter for \"%s\" is not allowed."),
|
||||
pg_log_filter_error(&fstate, _("%s filter for \"%s\" is not allowed"),
|
||||
"exclude",
|
||||
filter_object_type_name(objtype));
|
||||
exit_nicely(1);
|
||||
|
|
|
@ -1969,7 +1969,7 @@ read_dumpall_filters(const char *filename, SimpleStringList *pattern)
|
|||
{
|
||||
if (comtype == FILTER_COMMAND_TYPE_INCLUDE)
|
||||
{
|
||||
pg_log_filter_error(&fstate, _("%s filter for \"%s\" is not allowed."),
|
||||
pg_log_filter_error(&fstate, _("%s filter for \"%s\" is not allowed"),
|
||||
"include",
|
||||
filter_object_type_name(objtype));
|
||||
exit_nicely(1);
|
||||
|
@ -1989,7 +1989,7 @@ read_dumpall_filters(const char *filename, SimpleStringList *pattern)
|
|||
case FILTER_OBJECT_TYPE_SCHEMA:
|
||||
case FILTER_OBJECT_TYPE_TABLE:
|
||||
case FILTER_OBJECT_TYPE_TABLE_AND_CHILDREN:
|
||||
pg_log_filter_error(&fstate, _("unsupported filter object."));
|
||||
pg_log_filter_error(&fstate, _("unsupported filter object"));
|
||||
exit_nicely(1);
|
||||
break;
|
||||
|
||||
|
|
|
@ -535,7 +535,7 @@ read_restore_filters(const char *filename, RestoreOptions *opts)
|
|||
case FILTER_OBJECT_TYPE_DATABASE:
|
||||
case FILTER_OBJECT_TYPE_EXTENSION:
|
||||
case FILTER_OBJECT_TYPE_FOREIGN_DATA:
|
||||
pg_log_filter_error(&fstate, _("%s filter for \"%s\" is not allowed."),
|
||||
pg_log_filter_error(&fstate, _("%s filter for \"%s\" is not allowed"),
|
||||
"include",
|
||||
filter_object_type_name(objtype));
|
||||
exit_nicely(1);
|
||||
|
@ -581,7 +581,7 @@ read_restore_filters(const char *filename, RestoreOptions *opts)
|
|||
case FILTER_OBJECT_TYPE_TABLE:
|
||||
case FILTER_OBJECT_TYPE_TABLE_AND_CHILDREN:
|
||||
case FILTER_OBJECT_TYPE_TRIGGER:
|
||||
pg_log_filter_error(&fstate, _("%s filter for \"%s\" is not allowed."),
|
||||
pg_log_filter_error(&fstate, _("%s filter for \"%s\" is not allowed"),
|
||||
"exclude",
|
||||
filter_object_type_name(objtype));
|
||||
exit_nicely(1);
|
||||
|
|
Loading…
Reference in New Issue