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 1177ab1d forced the test case added by commit 1f6d515a 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
Showing
- src/backend/commands/explain.c 54 additions, 3 deletionssrc/backend/commands/explain.c
- src/backend/executor/execParallel.c 89 additions, 66 deletionssrc/backend/executor/execParallel.c
- src/backend/executor/nodeSort.c 97 additions, 0 deletionssrc/backend/executor/nodeSort.c
- src/backend/utils/sort/tuplesort.c 43 additions, 13 deletionssrc/backend/utils/sort/tuplesort.c
- src/include/executor/nodeSort.h 7 additions, 0 deletionssrc/include/executor/nodeSort.h
- src/include/nodes/execnodes.h 12 additions, 0 deletionssrc/include/nodes/execnodes.h
- src/include/utils/tuplesort.h 31 additions, 3 deletionssrc/include/utils/tuplesort.h
- src/test/regress/expected/subselect.out 4 additions, 1 deletionsrc/test/regress/expected/subselect.out
- src/test/regress/sql/subselect.sql 5 additions, 1 deletionsrc/test/regress/sql/subselect.sql
Loading
Please register or sign in to comment