*
* Originally by
* B. Palmer, bpalmer@crimelabs.net 1-17-2001
- * $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.30 2006/10/19 20:38:48 tgl Exp $
+ * $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.31 2007/07/15 22:54:20 tgl Exp $
*/
#include "postgres_fe.h"
sql_exec_dumpalldbs(pgconn, my_opts);
PQfinish(pgconn);
- exit(0);
+ return 0;
}
*/
if (triggered)
exit(1); /* Normal exit, with non-zero */
- else
- {
- /*
- * Once we have restored this file successfully we
- * can remove some prior WAL files.
- * If this restore fails we musn't remove any
- * file because some of them will be requested again
- * immediately after the failed restore, or when
- * we restart recovery.
- */
- if (RestoreWALFileForRecovery())
- CustomizableCleanupPriorWALFiles();
- exit(0);
- }
+
+ /*
+ * Once we have restored this file successfully we
+ * can remove some prior WAL files.
+ * If this restore fails we musn't remove any
+ * file because some of them will be requested again
+ * immediately after the failed restore, or when
+ * we restart recovery.
+ */
+ if (RestoreWALFileForRecovery())
+ CustomizableCleanupPriorWALFiles();
+
+ return 0;
}