Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a3375be

Browse files
committed
Print clearer failure message when pg_upgrade fails due to a fatal
error.
1 parent c15c1f1 commit a3375be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/pg_upgrade/util.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,10 @@ exit_nicely(bool need_cleanup)
200200
/* terminate any running instance of postmaster */
201201
if (os_info.postmasterPID != 0)
202202
kill(os_info.postmasterPID, SIGTERM);
203-
203+
204204
if (need_cleanup)
205205
{
206+
printf("Failure, exiting\n");
206207
/*
207208
* FIXME must delete intermediate files
208209
*/

0 commit comments

Comments
 (0)