pgsql: Pass the source text for a parallel query to the workers.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Pass the source text for a parallel query to the workers.
Date: 2017-02-22 06:55:14
Message-ID: E1cgQpW-0003ow-C1@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Pass the source text for a parallel query to the workers.

With this change, you can see the query that a parallel worker is
executing in pg_stat_activity, and if the worker crashes you can
see what query it was executing when it crashed.

Rafia Sabih, reviewed by Kuntal Ghosh and Amit Kapila and slightly
revised by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4c728f382970b6346142fe4409212063ee3e92dc

Modified Files
--------------
src/backend/executor/execMain.c | 2 ++
src/backend/executor/execParallel.c | 26 +++++++++++++++++++++++++-
src/backend/executor/execUtils.c | 1 +
src/include/nodes/execnodes.h | 1 +
4 files changed, 29 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2017-02-22 16:14:12 pgsql: Correctly handle array pseudotypes in to_json and to_jsonb
Previous Message Robert Haas 2017-02-22 06:43:42 pgsql: Fix incorrect typecast.