|
29 | 29 | #include"utils/builtins.h" |
30 | 30 | #include"utils/elog.h" |
31 | 31 | #include"utils/memutils.h" |
| 32 | +#include"utils/ps_status.h" |
32 | 33 |
|
33 | 34 | staticint64sendDir(char*path,intbasepathlen,boolsizeonly); |
34 | 35 | staticvoidsendFile(char*path,intbasepathlen,structstat*statbuf); |
@@ -96,6 +97,15 @@ SendBaseBackup(const char *options) |
96 | 97 | (errcode(ERRCODE_PROTOCOL_VIOLATION), |
97 | 98 | errmsg("invalid base backup options: %s",options))); |
98 | 99 |
|
| 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 | + |
99 | 109 | /* Make sure we can open the directory with tablespaces in it */ |
100 | 110 | dir=AllocateDir("pg_tblspc"); |
101 | 111 | if (!dir) |
|