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

Commit10a5b35

Browse files
committed
Report resource usage at the end of recovery
Reporting this has been rather useful in some recent recovery speedupwork. It also seems like something that will be useful to the average DBAtoo.Author: David RowleyReviewed-by: Thomas MunroDiscussion:https://postgr.es/m/CAApHDvqYVORiZxq2xPvP6_ndmmsTkvr6jSYv4UTNaFa5i1kd%3DQ%40mail.gmail.com
1 parent62e221e commit10a5b35

File tree

1 file changed

+7
-2
lines changed
  • src/backend/access/transam

1 file changed

+7
-2
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
#include"utils/memutils.h"
7777
#include"utils/ps_status.h"
7878
#include"utils/relmapper.h"
79+
#include"utils/pg_rusage.h"
7980
#include"utils/snapmgr.h"
8081
#include"utils/timestamp.h"
8182

@@ -7169,6 +7170,9 @@ StartupXLOG(void)
71697170
{
71707171
ErrorContextCallbackerrcallback;
71717172
TimestampTzxtime;
7173+
PGRUsageru0;
7174+
7175+
pg_rusage_init(&ru0);
71727176

71737177
InRedo= true;
71747178

@@ -7435,8 +7439,9 @@ StartupXLOG(void)
74357439
}
74367440

74377441
ereport(LOG,
7438-
(errmsg("redo done at %X/%X",
7439-
(uint32) (ReadRecPtr >>32), (uint32)ReadRecPtr)));
7442+
(errmsg("redo done at %X/%X system usage: %s",
7443+
(uint32) (ReadRecPtr >>32), (uint32)ReadRecPtr,
7444+
pg_rusage_show(&ru0))));
74407445
xtime=GetLatestXTime();
74417446
if (xtime)
74427447
ereport(LOG,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp