pgsql: Fix logic for adding "parallel worker" context line to worker er

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix logic for adding "parallel worker" context line to worker er
Date: 2016-08-26 14:07:40
Message-ID: E1bdHnI-0004zZ-4F@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)1472151987(at)sss(dot)pgh(dot)pa(dot)us>

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/9dca62e9ff3db2f482c829884b24a425692a5a18

Modified Files
--------------
src/backend/access/transam/parallel.c | 54 +++++++++++++++++------------------
1 file changed, 27 insertions(+), 27 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-08-26 18:19:17 pgsql: Put static forward declarations in elog.c back into same order a
Previous Message Heikki Linnakangas 2016-08-26 13:34:19 pgsql: Support OID system column in postgres_fdw.