]> granicus.if.org Git - postgresql/commit
Propagate sort instrumentation from workers back to leader.
authorRobert Haas <rhaas@postgresql.org>
Tue, 29 Aug 2017 17:22:49 +0000 (13:22 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 29 Aug 2017 17:26:33 +0000 (13:26 -0400)
commitbf11e7ee2e3607bb67d25aec73aa53b2d7e9961b
tree89c3d26f157949896e1a69c1ea4f4ae5b64833ee
parent3452dc5240da43e833118484e1e9b4894d04431c
Propagate sort instrumentation from workers back to leader.

Up until now, when parallel query was used, no details about the
sort method or space used by the workers were available; details
were shown only for any sorting done by the leader.  Fix that.

Commit 1177ab1dabf72bafee8f19d904cee3a299f25892 forced the test case
added by commit 1f6d515a67ec98194c23a5db25660856c9aab944 to run
without parallelism; now that we have this infrastructure, allow
that again, with a little tweaking to make it pass with and without
force_parallel_mode.

Robert Haas and Tom Lane

Discussion: http://postgr.es/m/CA+Tgmoa2VBZW6S8AAXfhpHczb=Rf6RqQ2br+zJvEgwJ0uoD_tQ@mail.gmail.com
src/backend/commands/explain.c
src/backend/executor/execParallel.c
src/backend/executor/nodeSort.c
src/backend/utils/sort/tuplesort.c
src/include/executor/nodeSort.h
src/include/nodes/execnodes.h
src/include/utils/tuplesort.h
src/test/regress/expected/subselect.out
src/test/regress/sql/subselect.sql