Skip to content

Commit 7c5a506

Browse files
vicpopovreshke
authored andcommitted
MDB-40410: Allow to kill backends which have application_name starting with "MDB" instead of exactly matching
1 parent 708ea17 commit 7c5a506

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/storage/ipc/signalfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pg_signal_backend(int pid, int sig)
9797

9898
if (local_beentry->backendStatus.st_backendType == B_AUTOVAC_WORKER) {
9999
// ok
100-
} else if (appname != NULL && strcmp(appname, "MDB") == 0) {
100+
} else if (appname != NULL && strncmp(appname, "MDB", 3) == 0) {
101101
// ok
102102
} else {
103103
return SIGNAL_BACKEND_NOSUPERUSER;

0 commit comments

Comments
 (0)