Commit 9e3cd375 authored by Itagaki Takahiro's avatar Itagaki Takahiro

Remove max_standby_delay message from ps display of recovery process

in waiting status. The parameter is not so interesting in ps display
because it is referable in postgresql.conf.
parent 26b7abfa
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.24 2010/05/26 19:52:52 sriggs Exp $ * $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.25 2010/06/14 00:49:24 itagaki Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -184,11 +184,9 @@ ResolveRecoveryConflictWithVirtualXIDs(VirtualTransactionId *waitlist, ...@@ -184,11 +184,9 @@ ResolveRecoveryConflictWithVirtualXIDs(VirtualTransactionId *waitlist,
int len; int len;
old_status = get_ps_display(&len); old_status = get_ps_display(&len);
new_status = (char *) palloc(len + 50); new_status = (char *) palloc(len + 8 + 1);
memcpy(new_status, old_status, len); memcpy(new_status, old_status, len);
snprintf(new_status + len, 50, strcpy(new_status + len, " waiting");
" waiting for max_standby_delay (%d ms)",
MaxStandbyDelay);
set_ps_display(new_status, false); set_ps_display(new_status, false);
new_status[len] = '\0'; /* truncate off " waiting" */ new_status[len] = '\0'; /* truncate off " waiting" */
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment