Fix logic for adding "parallel worker" context line to worker errors.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9dca62e9ff3db2f482c829884b24a425692a5a18
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-08-26T14:07:33Z
Releases: 9.6.0
Fix logic for adding "parallel worker" context line to worker errors.

The previous coding here was capable of adding a "parallel worker" context
line to errors that were not, in fact, returned from a parallel worker.
Instead of using an errcontext callback to add that annotation, just paste
it onto the message by hand; this looks uglier but is more reliable.

Discussion: <19757.1472151987@sss.pgh.pa.us>

Files

PathChange+/−
src/backend/access/transam/parallel.c modified +27 −27