diff options
author | Bruce Momjian | 2011-03-06 00:32:53 +0000 |
---|---|---|
committer | Bruce Momjian | 2011-03-06 00:32:53 +0000 |
commit | a3375becfaebde56f8e6260a3f77c467425fbe51 (patch) | |
tree | 6fc72cd9b986128d593e786bd0f1055e0d9a77cf /contrib/pg_upgrade/util.c | |
parent | c15c1f1c15fc19d20c0699aeb312664f5529c87a (diff) |
Print clearer failure message when pg_upgrade fails due to a fatal
error.
Diffstat (limited to 'contrib/pg_upgrade/util.c')
-rw-r--r-- | contrib/pg_upgrade/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |