Clear ps display of startup process at the end of recovery

Michael Paquier <michael@paquier.xyz>

Commit: 848c323c1295dd724587d9c91275414db15e2772
Author: Michael Paquier <michael@paquier.xyz>
Date: 2022-09-22T05:25:12Z
Releases: 15.0
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/20220913223954.GU31833@telsasoft.com
Backpatch-through: 15

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +6 −0

Discussion