From a3375becfaebde56f8e6260a3f77c467425fbe51 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Sat, 5 Mar 2011 19:32:53 -0500
Subject: [PATCH] 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 5207334e0c..f957508101 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
 		 */