Skip to content

Commit fbb5f54

Browse files
committed
Clear ps display of startup process at the end of recovery
If the ps display is not cleared at this point, the process could continue displaying "recovering NNN" even if handling end-of-recovery steps. df9274a has tackled that by providing some information with the end-of-recovery checkpoint but 7ff23c6 has nullified the effect of the first commit. Per a suggestion from Justin, just clear the ps display when we are done with recovery, so as no incorrect information is displayed. This may get extended in the future, but for now restore the pre-7ff23c6 behavior. Author: Justin Prysby Discussion: https://postgr.es/m/[email protected] Backpatch-through: 15
1 parent 2f636da commit fbb5f54

File tree

1 file changed

+6
-0
lines changed
  • src/backend/access/transam

1 file changed

+6
-0
lines changed

src/backend/access/transam/xlog.c

+6
Original file line numberDiff line numberDiff line change
@@ -5477,6 +5477,12 @@ StartupXLOG(void)
54775477
abortedRecPtr = endOfRecoveryInfo->abortedRecPtr;
54785478
missingContrecPtr = endOfRecoveryInfo->missingContrecPtr;
54795479

5480+
/*
5481+
* Reset ps status display, so as no information related to recovery
5482+
* shows up.
5483+
*/
5484+
set_ps_display("");
5485+
54805486
/*
54815487
* When recovering from a backup (we are in recovery, and archive recovery
54825488
* was requested), complain if we did not roll forward far enough to reach

0 commit comments

Comments
 (0)