Commit 56f9ff72 authored by Peter Eisentraut's avatar Peter Eisentraut

Add missing newlines to error messages, and normalize wording a bit.

parent 2de946be
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* by PostgreSQL * by PostgreSQL
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.474 2007/11/07 13:11:05 petere Exp $ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.475 2007/11/08 10:37:54 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -5524,7 +5524,7 @@ dumpEnumType(Archive *fout, TypeInfo *tinfo) ...@@ -5524,7 +5524,7 @@ dumpEnumType(Archive *fout, TypeInfo *tinfo)
/* should be at least 1 value */ /* should be at least 1 value */
if (num == 0) if (num == 0)
{ {
write_msg(NULL, "no label definitions found for enum ID %u", tinfo->dobj.catId.oid); write_msg(NULL, "no label definitions found for enum ID %u\n", tinfo->dobj.catId.oid);
exit_nicely(); exit_nicely();
} }
...@@ -5753,7 +5753,7 @@ dumpBaseType(Archive *fout, TypeInfo *tinfo) ...@@ -5753,7 +5753,7 @@ dumpBaseType(Archive *fout, TypeInfo *tinfo)
ntups = PQntuples(res); ntups = PQntuples(res);
if (ntups != 1) if (ntups != 1)
{ {
write_msg(NULL, "Got %d rows instead of one from: %s", write_msg(NULL, "query returned %d rows instead of one: %s\n",
ntups, query->data); ntups, query->data);
exit_nicely(); exit_nicely();
} }
...@@ -5938,7 +5938,7 @@ dumpDomain(Archive *fout, TypeInfo *tinfo) ...@@ -5938,7 +5938,7 @@ dumpDomain(Archive *fout, TypeInfo *tinfo)
ntups = PQntuples(res); ntups = PQntuples(res);
if (ntups != 1) if (ntups != 1)
{ {
write_msg(NULL, "Got %d rows instead of one from: %s", write_msg(NULL, "query returned %d rows instead of one: %s\n",
ntups, query->data); ntups, query->data);
exit_nicely(); exit_nicely();
} }
...@@ -6057,7 +6057,7 @@ dumpCompositeType(Archive *fout, TypeInfo *tinfo) ...@@ -6057,7 +6057,7 @@ dumpCompositeType(Archive *fout, TypeInfo *tinfo)
ntups = PQntuples(res); ntups = PQntuples(res);
if (ntups < 1) if (ntups < 1)
{ {
write_msg(NULL, "query yielded no rows: %s\n", query->data); write_msg(NULL, "query returned no rows: %s\n", query->data);
exit_nicely(); exit_nicely();
} }
...@@ -6537,7 +6537,7 @@ dumpFunc(Archive *fout, FuncInfo *finfo) ...@@ -6537,7 +6537,7 @@ dumpFunc(Archive *fout, FuncInfo *finfo)
ntups = PQntuples(res); ntups = PQntuples(res);
if (ntups != 1) if (ntups != 1)
{ {
write_msg(NULL, "Got %d rows instead of one from: %s", write_msg(NULL, "query returned %d rows instead of one: %s\n",
ntups, query->data); ntups, query->data);
exit_nicely(); exit_nicely();
} }
...@@ -7029,7 +7029,7 @@ dumpOpr(Archive *fout, OprInfo *oprinfo) ...@@ -7029,7 +7029,7 @@ dumpOpr(Archive *fout, OprInfo *oprinfo)
ntups = PQntuples(res); ntups = PQntuples(res);
if (ntups != 1) if (ntups != 1)
{ {
write_msg(NULL, "Got %d rows instead of one from: %s", write_msg(NULL, "query returned %d rows instead of one: %s\n",
ntups, query->data); ntups, query->data);
exit_nicely(); exit_nicely();
} }
...@@ -7276,7 +7276,7 @@ convertTSFunction(Oid funcOid) ...@@ -7276,7 +7276,7 @@ convertTSFunction(Oid funcOid)
ntups = PQntuples(res); ntups = PQntuples(res);
if (ntups != 1) if (ntups != 1)
{ {
write_msg(NULL, "Got %d rows instead of one from \"%s\"\n", write_msg(NULL, "query returned %d rows instead of one: %s\n",
ntups, query); ntups, query);
exit_nicely(); exit_nicely();
} }
...@@ -7380,7 +7380,7 @@ dumpOpclass(Archive *fout, OpclassInfo *opcinfo) ...@@ -7380,7 +7380,7 @@ dumpOpclass(Archive *fout, OpclassInfo *opcinfo)
ntups = PQntuples(res); ntups = PQntuples(res);
if (ntups != 1) if (ntups != 1)
{ {
write_msg(NULL, "Got %d rows instead of one from: %s", write_msg(NULL, "query returned %d rows instead of one: %s\n",
ntups, query->data); ntups, query->data);
exit_nicely(); exit_nicely();
} }
...@@ -7718,7 +7718,7 @@ dumpOpfamily(Archive *fout, OpfamilyInfo *opfinfo) ...@@ -7718,7 +7718,7 @@ dumpOpfamily(Archive *fout, OpfamilyInfo *opfinfo)
ntups = PQntuples(res); ntups = PQntuples(res);
if (ntups != 1) if (ntups != 1)
{ {
write_msg(NULL, "Got %d rows instead of one from: %s", write_msg(NULL, "query returned %d rows instead of one: %s\n",
ntups, query->data); ntups, query->data);
exit_nicely(); exit_nicely();
} }
...@@ -7891,7 +7891,7 @@ dumpConversion(Archive *fout, ConvInfo *convinfo) ...@@ -7891,7 +7891,7 @@ dumpConversion(Archive *fout, ConvInfo *convinfo)
ntups = PQntuples(res); ntups = PQntuples(res);
if (ntups != 1) if (ntups != 1)
{ {
write_msg(NULL, "Got %d rows instead of one from: %s", write_msg(NULL, "query returned %d rows instead of one: %s\n",
ntups, query->data); ntups, query->data);
exit_nicely(); exit_nicely();
} }
...@@ -8085,7 +8085,7 @@ dumpAgg(Archive *fout, AggInfo *agginfo) ...@@ -8085,7 +8085,7 @@ dumpAgg(Archive *fout, AggInfo *agginfo)
ntups = PQntuples(res); ntups = PQntuples(res);
if (ntups != 1) if (ntups != 1)
{ {
write_msg(NULL, "Got %d rows instead of one from: %s", write_msg(NULL, "query returned %d rows instead of one: %s\n",
ntups, query->data); ntups, query->data);
exit_nicely(); exit_nicely();
} }
...@@ -8308,7 +8308,7 @@ dumpTSDictionary(Archive *fout, TSDictInfo * dictinfo) ...@@ -8308,7 +8308,7 @@ dumpTSDictionary(Archive *fout, TSDictInfo * dictinfo)
ntups = PQntuples(res); ntups = PQntuples(res);
if (ntups != 1) if (ntups != 1)
{ {
write_msg(NULL, "Got %d rows instead of one from \"%s\"\n", write_msg(NULL, "query returned %d rows instead of one: %s\n",
ntups, query->data); ntups, query->data);
exit_nicely(); exit_nicely();
} }
...@@ -8459,7 +8459,7 @@ dumpTSConfig(Archive *fout, TSConfigInfo * cfginfo) ...@@ -8459,7 +8459,7 @@ dumpTSConfig(Archive *fout, TSConfigInfo * cfginfo)
ntups = PQntuples(res); ntups = PQntuples(res);
if (ntups != 1) if (ntups != 1)
{ {
write_msg(NULL, "Got %d rows instead of one from \"%s\"\n", write_msg(NULL, "query returned %d rows instead of one: %s\n",
ntups, query->data); ntups, query->data);
exit_nicely(); exit_nicely();
} }
...@@ -9810,7 +9810,7 @@ dumpRule(Archive *fout, RuleInfo *rinfo) ...@@ -9810,7 +9810,7 @@ dumpRule(Archive *fout, RuleInfo *rinfo)
if (PQntuples(res) != 1) if (PQntuples(res) != 1)
{ {
write_msg(NULL, "query to get rule \"%s\" for table \"%s\" failed: wrong number of rows returned", write_msg(NULL, "query to get rule \"%s\" for table \"%s\" failed: wrong number of rows returned\n",
rinfo->dobj.name, tbinfo->dobj.name); rinfo->dobj.name, tbinfo->dobj.name);
exit_nicely(); exit_nicely();
} }
...@@ -10093,7 +10093,7 @@ getFormattedTypeName(Oid oid, OidOptions opts) ...@@ -10093,7 +10093,7 @@ getFormattedTypeName(Oid oid, OidOptions opts)
ntups = PQntuples(res); ntups = PQntuples(res);
if (ntups != 1) if (ntups != 1)
{ {
write_msg(NULL, "query yielded %d rows instead of one: %s\n", write_msg(NULL, "query returned %d rows instead of one: %s\n",
ntups, query->data); ntups, query->data);
exit_nicely(); exit_nicely();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment