Clear ps display of startup process at the end of recovery
authorMichael Paquier <[email protected]>
Thu, 22 Sep 2022 05:25:09 +0000 (14:25 +0900)
committerMichael Paquier <[email protected]>
Thu, 22 Sep 2022 05:25:09 +0000 (14:25 +0900)
commitfbb5f54b67c2f35c885d07daa26bce7e2eb6b0be
treecfeb75398713f5dec899a42179c95737111dfadc
parent2f636daac85b7bad608b24b475feceb7e3076ec6
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[email protected]
Backpatch-through: 15
src/backend/access/transam/xlog.c