diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index ad1cd4b1e4f1d07f4f9e941589a8847caebe777a..a1ebc72d8d55730aace019f565055794f5b44720 100644 --- a/src/backend/storage/ipc/procarray.c +++ b/src/backend/storage/ipc/procarray.c @@ -2466,6 +2466,8 @@ MinimumActiveBackends(int min) * free list and are recycled. Its contents are nonsense in that case, * but that's acceptable for this function. */ + if (pgprocno == -1) + continue; /* do not count deleted entries */ if (proc == MyProc) continue; /* do not count myself */ if (pgxact->xid == InvalidTransactionId)