]> granicus.if.org Git - postgresql/commitdiff
pg_dump: Add missing newlines at end of messages
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 18 Jun 2012 20:57:00 +0000 (23:57 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 18 Jun 2012 20:57:00 +0000 (23:57 +0300)
src/bin/pg_dump/dumputils.c
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_directory.c
src/bin/pg_dump/pg_dump.c

index 8574380b9cf10000513f8baadd574eaef6f2490b..91f2774955c0f3b3ef9705ed71cc6328fe009c78 100644 (file)
@@ -1323,7 +1323,7 @@ void
 on_exit_nicely(on_exit_nicely_callback function, void *arg)
 {
        if (on_exit_nicely_index >= MAX_ON_EXIT_NICELY)
-               exit_horribly(NULL, "out of on_exit_nicely slots");
+               exit_horribly(NULL, "out of on_exit_nicely slots\n");
        on_exit_nicely_list[on_exit_nicely_index].function = function;
        on_exit_nicely_list[on_exit_nicely_index].arg = arg;
        on_exit_nicely_index++;
index 5826bace685d9e489be5611f701936e11547db23..7f43bca94cfc5d2799844fb206d78dca82e6298a 100644 (file)
@@ -1566,7 +1566,7 @@ buildTocEntryArrays(ArchiveHandle *AH)
        {
                /* this check is purely paranoia, maxDumpId should be correct */
                if (te->dumpId <= 0 || te->dumpId > maxDumpId)
-                       exit_horribly(modulename, "bad dumpId");
+                       exit_horribly(modulename, "bad dumpId\n");
 
                /* tocsByDumpId indexes all TOCs by their dump ID */
                AH->tocsByDumpId[te->dumpId] = te;
@@ -1587,7 +1587,7 @@ buildTocEntryArrays(ArchiveHandle *AH)
                         * item's dump ID, so there should be a place for it in the array.
                         */
                        if (tableId <= 0 || tableId > maxDumpId)
-                               exit_horribly(modulename, "bad table dumpId for TABLE DATA item");
+                               exit_horribly(modulename, "bad table dumpId for TABLE DATA item\n");
 
                        AH->tableDataId[tableId] = te->dumpId;
                }
index 32dcb12fdf8c9240a6b26f793fc5437ba8833b2b..796444421fb162f5d360a63235707db7f858d300 100644 (file)
@@ -652,7 +652,7 @@ createDirectory(const char *dir)
         * between our two calls.
         */
        if (mkdir(dir, 0700) < 0)
-               exit_horribly(modulename, "could not create directory %s: %s",
+               exit_horribly(modulename, "could not create directory %s: %s\n",
                                          dir, strerror(errno));
 }
 
@@ -667,7 +667,7 @@ prependDirectory(ArchiveHandle *AH, const char *relativeFilename)
        dname = ctx->directory;
 
        if (strlen(dname) + 1 + strlen(relativeFilename) + 1 > MAXPGPATH)
-               exit_horribly(modulename, "file name too long: \"%s\"", dname);
+               exit_horribly(modulename, "file name too long: \"%s\"\n", dname);
 
        strcpy(buf, dname);
        strcat(buf, "/");
index 4780c37d302f5017b863b67fa0983fc13cfe17ed..5fde18921ac3c20f878fbe5ad22c60fabc13a916 100644 (file)
@@ -2531,7 +2531,7 @@ binary_upgrade_extension_member(PQExpBuffer upgrade_buffer,
                extobj = NULL;
        }
        if (extobj == NULL)
-               exit_horribly(NULL, "could not find parent extension for %s", objlabel);
+               exit_horribly(NULL, "could not find parent extension for %s\n", objlabel);
 
        appendPQExpBuffer(upgrade_buffer,
          "\n-- For binary upgrade, handle extension membership the hard way\n");