]> granicus.if.org Git - postgresql/commit
Pass the source text for a parallel query to the workers.
authorRobert Haas <rhaas@postgresql.org>
Wed, 22 Feb 2017 06:45:17 +0000 (12:15 +0530)
committerRobert Haas <rhaas@postgresql.org>
Wed, 22 Feb 2017 06:48:29 +0000 (12:18 +0530)
commit4c728f382970b6346142fe4409212063ee3e92dc
tree1ccddcf7c579ceb4b0900c9e68b72901326ed0af
parentb4316928d57bec22e95875e6487a4d665bd03a52
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.
src/backend/executor/execMain.c
src/backend/executor/execParallel.c
src/backend/executor/execUtils.c
src/include/nodes/execnodes.h