Skip to content

Commit 18d7eb0

Browse files
committed
MDB-40410: Allow to kill backends which have application_name starting with "MDB" instead of exactly matching
1 parent b04e3e6 commit 18d7eb0

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
@@ -103,7 +103,7 @@ pg_signal_backend(int pid, int sig)
103103

104104
if (local_beentry->backendStatus.st_backendType == B_AUTOVAC_WORKER) {
105105
// ok
106-
} else if (appname != NULL && strcmp(appname, "MDB") == 0) {
106+
} else if (appname != NULL && strncmp(appname, "MDB", 3) == 0) {
107107
// ok
108108
} else {
109109
return SIGNAL_BACKEND_NOSUPERUSER;

0 commit comments

Comments
 (0)