Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit22a85b3

Browse files
committed
pg_dump: Strict names with no matching schema
When using pg_dump --strict-names and a schema pattern which doesn'tmatch any schemas (eg: --schema='nonexistant*'), we were incorrectlythrowing an error claiming no tables were found when, really, therewere no schemas found: -> pg_dump --strict-names --schema='nonexistant*' pg_dump: no matching tables were found for pattern "nonexistant*"Fix that by changing the error message to say 'schemas' instead, sincethat is what we are actually complaining about.Noticed while testing pg_dump error cases.Back-patch to 9.6 where --strict-names and this error message wereintroduced.
1 parent96f2344 commit22a85b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ expand_schema_name_patterns(Archive *fout,
12191219

12201220
res = ExecuteSqlQuery(fout, query->data, PGRES_TUPLES_OK);
12211221
if (strict_names && PQntuples(res) == 0)
1222-
exit_horribly(NULL, "no matchingtables were found for pattern \"%s\"\n", cell->val);
1222+
exit_horribly(NULL, "no matchingschemas were found for pattern \"%s\"\n", cell->val);
12231223

12241224
for (i = 0; i < PQntuples(res); i++)
12251225
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp