Skip to content

Commit 91e3196

Browse files
Additional check of process state
1 parent 4d2b581 commit 91e3196

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: pg_query_state.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,8 @@ GetRemoteBackendQueryStates(PGPROC *leader,
982982
foreach(iter, pworkers)
983983
{
984984
PGPROC *proc = (PGPROC *) lfirst(iter);
985-
Assert (proc && proc->pid);
985+
if (!proc || !proc->pid)
986+
continue;
986987
sig_result = SendProcSignal(proc->pid,
987988
QueryStatePollReason,
988989
proc->backendId);

0 commit comments

Comments
 (0)