diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index adfc6f67e2..aa7accbe1b 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -7616,6 +7616,7 @@ StartupXLOG(void)
 						(errmsg("last completed transaction was at log time %s",
 								timestamptz_to_str(xtime))));
 
+			elog(PANIC, "recovery PANIC");
 			InRedo = false;
 		}
 		else
