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

Commit2e36343

Browse files
committed
Set process title to indicate base backup is running
1 parentdc1305c commit2e36343

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎src/backend/replication/basebackup.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include"utils/builtins.h"
3030
#include"utils/elog.h"
3131
#include"utils/memutils.h"
32+
#include"utils/ps_status.h"
3233

3334
staticint64sendDir(char*path,intbasepathlen,boolsizeonly);
3435
staticvoidsendFile(char*path,intbasepathlen,structstat*statbuf);
@@ -96,6 +97,15 @@ SendBaseBackup(const char *options)
9697
(errcode(ERRCODE_PROTOCOL_VIOLATION),
9798
errmsg("invalid base backup options: %s",options)));
9899

100+
if (update_process_title)
101+
{
102+
charactivitymsg[50];
103+
104+
snprintf(activitymsg,sizeof(activitymsg),"sending backup \"%s\"",
105+
backup_label);
106+
set_ps_display(activitymsg, false);
107+
}
108+
99109
/* Make sure we can open the directory with tablespaces in it */
100110
dir=AllocateDir("pg_tblspc");
101111
if (!dir)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp