aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-09-22 14:25:12 +0900
committerMichael Paquier <michael@paquier.xyz>2022-09-22 14:25:12 +0900
commit848c323c1295dd724587d9c91275414db15e2772 (patch)
tree1b84931521f9792442518fc62559c66eab6aea2b /src
parent4230279f357602bd99c038e0aec8087a7076522b (diff)
downloadpostgresql-848c323c1295dd724587d9c91275414db15e2772.tar.gz
postgresql-848c323c1295dd724587d9c91275414db15e2772.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/xlog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 4c6967d40ee..32c6bb5d288 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -5313,6 +5313,12 @@ StartupXLOG(void)
missingContrecPtr = endOfRecoveryInfo->missingContrecPtr;
/*
+ * Reset ps status display, so as no information related to recovery
+ * shows up.
+ */
+ set_ps_display("");
+
+ /*
* When recovering from a backup (we are in recovery, and archive recovery
* was requested), complain if we did not roll forward far enough to reach
* the point where the database is consistent. For regular online