OSDN Git Service

Print clearer failure message when pg_upgrade fails due to a fatal
authorBruce Momjian <bruce@momjian.us>
Sun, 6 Mar 2011 00:32:53 +0000 (19:32 -0500)
committerBruce Momjian <bruce@momjian.us>
Sun, 6 Mar 2011 00:32:53 +0000 (19:32 -0500)
error.

contrib/pg_upgrade/util.c

index 5207334..f957508 100644 (file)
@@ -200,9 +200,10 @@ exit_nicely(bool need_cleanup)
        /* terminate any running instance of postmaster */
        if (os_info.postmasterPID != 0)
                kill(os_info.postmasterPID, SIGTERM);
-
+       
        if (need_cleanup)
        {
+               printf("Failure, exiting\n");
                /*
                 * FIXME must delete intermediate files
                 */