]> granicus.if.org Git - postgresql/commit
Fix logic for adding "parallel worker" context line to worker errors.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Aug 2016 14:07:28 +0000 (10:07 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Aug 2016 14:07:33 +0000 (10:07 -0400)
commit9dca62e9ff3db2f482c829884b24a425692a5a18
treec1df5719b8d35971847836985765413b52495e81
parente6bd440688af13449bcb1b80698e6ef4b16245a6
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>
src/backend/access/transam/parallel.c