Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9e3cd37

Browse files
committed
Remove max_standby_delay message from ps display of recovery process
in waiting status. The parameter is not so interesting in ps displaybecause it is referable in postgresql.conf.
1 parent26b7abf commit9e3cd37

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

‎src/backend/storage/ipc/standby.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Portions Copyright (c) 1994, Regents of the University of California
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.24 2010/05/26 19:52:52 sriggs Exp $
14+
* $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.25 2010/06/14 00:49:24 itagaki Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -184,11 +184,9 @@ ResolveRecoveryConflictWithVirtualXIDs(VirtualTransactionId *waitlist,
184184
intlen;
185185

186186
old_status=get_ps_display(&len);
187-
new_status= (char*)palloc(len+50);
187+
new_status= (char*)palloc(len+8+1);
188188
memcpy(new_status,old_status,len);
189-
snprintf(new_status+len,50,
190-
" waiting for max_standby_delay (%d ms)",
191-
MaxStandbyDelay);
189+
strcpy(new_status+len," waiting");
192190
set_ps_display(new_status, false);
193191
new_status[len]='\0';/* truncate off " waiting" */
194192
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp