*/
save_error_context_stack = error_context_stack;
errctx.callback = ParallelErrorContext;
- errctx.arg = &pcxt->worker[i].pid;
+ errctx.arg = NULL;
errctx.previous = pcxt->error_context_stack;
error_context_stack = &errctx;
ParallelErrorContext(void *arg)
{
if (force_parallel_mode != FORCE_PARALLEL_REGRESS)
- errcontext("parallel worker, PID %d", *(int32 *) arg);
+ errcontext("parallel worker");
}
/*
(5 rows)
do $$begin
- -- Provoke error in worker. The original message CONTEXT contains a worker
- -- PID that must be hidden in the test output.
+ -- Provoke error, possibly in worker. If this error happens to occur in
+ -- the worker, there will be a CONTEXT line which must be hidden.
perform stringu1::int2 from tenk1 where unique1 = 1;
exception
when others then
select stringu1::int2 from tenk1 where unique1 = 1;
do $$begin
- -- Provoke error in worker. The original message CONTEXT contains a worker
- -- PID that must be hidden in the test output.
+ -- Provoke error, possibly in worker. If this error happens to occur in
+ -- the worker, there will be a CONTEXT line which must be hidden.
perform stringu1::int2 from tenk1 where unique1 = 1;
exception
when others then