]> granicus.if.org Git - postgresql/commitdiff
Add missing newlines to error messages, and normalize wording a bit.
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 8 Nov 2007 10:37:54 +0000 (10:37 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 8 Nov 2007 10:37:54 +0000 (10:37 +0000)
src/bin/pg_dump/pg_dump.c

index aceb3fb33804e918c1da1009f67ec8a710980b71..ba15398c5fb195481899c0647d8b7b6602d51902 100644 (file)
@@ -12,7 +12,7 @@
  *     by PostgreSQL
  *
  * 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)
        /* should be at least 1 value */
        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();
        }
 
@@ -5753,7 +5753,7 @@ dumpBaseType(Archive *fout, TypeInfo *tinfo)
        ntups = PQntuples(res);
        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);
                exit_nicely();
        }
@@ -5938,7 +5938,7 @@ dumpDomain(Archive *fout, TypeInfo *tinfo)
        ntups = PQntuples(res);
        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);
                exit_nicely();
        }
@@ -6057,7 +6057,7 @@ dumpCompositeType(Archive *fout, TypeInfo *tinfo)
        ntups = PQntuples(res);
        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();
        }
 
@@ -6537,7 +6537,7 @@ dumpFunc(Archive *fout, FuncInfo *finfo)
        ntups = PQntuples(res);
        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);
                exit_nicely();
        }
@@ -7029,7 +7029,7 @@ dumpOpr(Archive *fout, OprInfo *oprinfo)
        ntups = PQntuples(res);
        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);
                exit_nicely();
        }
@@ -7276,7 +7276,7 @@ convertTSFunction(Oid funcOid)
        ntups = PQntuples(res);
        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);
                exit_nicely();
        }
@@ -7380,7 +7380,7 @@ dumpOpclass(Archive *fout, OpclassInfo *opcinfo)
        ntups = PQntuples(res);
        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);
                exit_nicely();
        }
@@ -7718,7 +7718,7 @@ dumpOpfamily(Archive *fout, OpfamilyInfo *opfinfo)
        ntups = PQntuples(res);
        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);
                exit_nicely();
        }
@@ -7891,7 +7891,7 @@ dumpConversion(Archive *fout, ConvInfo *convinfo)
        ntups = PQntuples(res);
        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);
                exit_nicely();
        }
@@ -8085,7 +8085,7 @@ dumpAgg(Archive *fout, AggInfo *agginfo)
        ntups = PQntuples(res);
        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);
                exit_nicely();
        }
@@ -8308,7 +8308,7 @@ dumpTSDictionary(Archive *fout, TSDictInfo * dictinfo)
        ntups = PQntuples(res);
        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);
                exit_nicely();
        }
@@ -8459,7 +8459,7 @@ dumpTSConfig(Archive *fout, TSConfigInfo * cfginfo)
        ntups = PQntuples(res);
        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);
                exit_nicely();
        }
@@ -9810,7 +9810,7 @@ dumpRule(Archive *fout, RuleInfo *rinfo)
 
        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);
                exit_nicely();
        }
@@ -10093,7 +10093,7 @@ getFormattedTypeName(Oid oid, OidOptions opts)
        ntups = PQntuples(res);
        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);
                exit_nicely();
        }