Skip to content

Commit 2e36343

Browse files
committed
Set process title to indicate base backup is running
1 parent dc1305c commit 2e36343

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
static int64 sendDir(char *path, int basepathlen, bool sizeonly);
3435
static void sendFile(char *path, int basepathlen, struct stat * 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+
char activitymsg[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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy