mirror of
https://github.com/postgres/postgres.git
synced 2025-10-16 17:07:43 +03:00
pg_dump: Message style improvements
This commit is contained in:
@@ -2658,35 +2658,35 @@ StrictNamesCheck(RestoreOptions *ropt)
|
||||
{
|
||||
missing_name = simple_string_list_not_touched(&ropt->schemaNames);
|
||||
if (missing_name != NULL)
|
||||
exit_horribly(modulename, "Schema \"%s\" not found.\n", missing_name);
|
||||
exit_horribly(modulename, "schema \"%s\" not found\n", missing_name);
|
||||
}
|
||||
|
||||
if (ropt->tableNames.head != NULL)
|
||||
{
|
||||
missing_name = simple_string_list_not_touched(&ropt->tableNames);
|
||||
if (missing_name != NULL)
|
||||
exit_horribly(modulename, "Table \"%s\" not found.\n", missing_name);
|
||||
exit_horribly(modulename, "table \"%s\" not found\n", missing_name);
|
||||
}
|
||||
|
||||
if (ropt->indexNames.head != NULL)
|
||||
{
|
||||
missing_name = simple_string_list_not_touched(&ropt->indexNames);
|
||||
if (missing_name != NULL)
|
||||
exit_horribly(modulename, "Index \"%s\" not found.\n", missing_name);
|
||||
exit_horribly(modulename, "index \"%s\" not found\n", missing_name);
|
||||
}
|
||||
|
||||
if (ropt->functionNames.head != NULL)
|
||||
{
|
||||
missing_name = simple_string_list_not_touched(&ropt->functionNames);
|
||||
if (missing_name != NULL)
|
||||
exit_horribly(modulename, "Function \"%s\" not found.\n", missing_name);
|
||||
exit_horribly(modulename, "function \"%s\" not found\n", missing_name);
|
||||
}
|
||||
|
||||
if (ropt->triggerNames.head != NULL)
|
||||
{
|
||||
missing_name = simple_string_list_not_touched(&ropt->triggerNames);
|
||||
if (missing_name != NULL)
|
||||
exit_horribly(modulename, "Trigger \"%s\" not found.\n", missing_name);
|
||||
exit_horribly(modulename, "trigger \"%s\" not found\n", missing_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user