Skip to content

Commit fd27065

Browse files
committed
pg_dump: Refactor messages
This reduces the number of separate messages for translation.
1 parent e6c6071 commit fd27065

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4563,7 +4563,7 @@ dumpSubscription(Archive *fout, const SubscriptionInfo *subinfo)
45634563

45644564
/* Build list of quoted publications and append them to query. */
45654565
if (!parsePGArray(subinfo->subpublications, &pubnames, &npubnames))
4566-
fatal("could not parse subpublications array");
4566+
fatal("could not parse %s array", "subpublications");
45674567

45684568
publications = createPQExpBuffer();
45694569
for (i = 0; i < npubnames; i++)
@@ -12238,7 +12238,7 @@ dumpFunc(Archive *fout, const FuncInfo *finfo)
1223812238
if (!parsePGArray(proallargtypes, &allargtypes, &nitems) ||
1223912239
nitems < finfo->nargs)
1224012240
{
12241-
pg_log_warning("could not parse proallargtypes array");
12241+
pg_log_warning("could not parse %s array", "proallargtypes");
1224212242
if (allargtypes)
1224312243
free(allargtypes);
1224412244
allargtypes = NULL;
@@ -12254,7 +12254,7 @@ dumpFunc(Archive *fout, const FuncInfo *finfo)
1225412254
if (!parsePGArray(proargmodes, &argmodes, &nitems) ||
1225512255
nitems != nallargs)
1225612256
{
12257-
pg_log_warning("could not parse proargmodes array");
12257+
pg_log_warning("could not parse %s array", "proargmodes");
1225812258
if (argmodes)
1225912259
free(argmodes);
1226012260
argmodes = NULL;
@@ -12268,7 +12268,7 @@ dumpFunc(Archive *fout, const FuncInfo *finfo)
1226812268
if (!parsePGArray(proargnames, &argnames, &nitems) ||
1226912269
nitems != nallargs)
1227012270
{
12271-
pg_log_warning("could not parse proargnames array");
12271+
pg_log_warning("could not parse %s array", "proargnames");
1227212272
if (argnames)
1227312273
free(argnames);
1227412274
argnames = NULL;
@@ -12278,7 +12278,7 @@ dumpFunc(Archive *fout, const FuncInfo *finfo)
1227812278
if (proconfig && *proconfig)
1227912279
{
1228012280
if (!parsePGArray(proconfig, &configitems, &nconfigitems))
12281-
fatal("could not parse proconfig array");
12281+
fatal("could not parse %s array", "proconfig");
1228212282
}
1228312283
else
1228412284
{
@@ -18190,9 +18190,9 @@ processExtensionTables(Archive *fout, ExtensionInfo extinfo[],
1819018190
int j;
1819118191

1819218192
if (!parsePGArray(extconfig, &extconfigarray, &nconfigitems))
18193-
fatal("could not parse extension configuration array");
18193+
fatal("could not parse %s array", "extconfig");
1819418194
if (!parsePGArray(extcondition, &extconditionarray, &nconditionitems))
18195-
fatal("could not parse extension condition array");
18195+
fatal("could not parse %s array", "extcondition");
1819618196
if (nconfigitems != nconditionitems)
1819718197
fatal("mismatched number of configurations and conditions for extension");
1819818198

@@ -18820,5 +18820,5 @@ appendReloptionsArrayAH(PQExpBuffer buffer, const char *reloptions,
1882018820
res = appendReloptionsArray(buffer, reloptions, prefix, fout->encoding,
1882118821
fout->std_strings);
1882218822
if (!res)
18823-
pg_log_warning("could not parse reloptions array");
18823+
pg_log_warning("could not parse %s array", "reloptions");
1882418824
}

0 commit comments

Comments
 (0)