postgres.git / summary / log / commit / refs

commit    a3375becfaebde56f8e6260a3f77c467425fbe51
Author:   Bruce Momjian <bruce@momjian.us>
Date:     Sun Mar 06 00:32:53 2011 +0000
First released in: 9.1.0

    Print clearer failure message when pg_upgrade fails due to a fatal
    error.


contrib/pg_upgrade/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/pg_upgrade/util.c b/contrib/pg_upgrade/util.c index 5207334e0cb..f9575081013 100644 --- a/contrib/pg_upgrade/util.c +++ b/contrib/pg_upgrade/util.c @@ -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 */ [parent: c15c1f1c15fc]