Skip to content

Commit

Permalink
Additional check of process state
Browse files Browse the repository at this point in the history
  • Loading branch information
CherkashinSergey committed Nov 1, 2018
1 parent 4d2b581 commit 91e3196
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pg_query_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,8 @@ GetRemoteBackendQueryStates(PGPROC *leader,
foreach(iter, pworkers)
{
PGPROC *proc = (PGPROC *) lfirst(iter);
Assert (proc && proc->pid);
if (!proc || !proc->pid)
continue;
sig_result = SendProcSignal(proc->pid,
QueryStatePollReason,
proc->backendId);
Expand Down

0 comments on commit 91e3196

Please sign in to comment.