Minor optimizations based on ParallelContext having nworkers_launched.
authorRobert Haas <rhaas@postgresql.org>
Fri, 4 Mar 2016 17:59:10 +0000 (12:59 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 4 Mar 2016 17:59:10 +0000 (12:59 -0500)
commitdf4685fb0cad1c75970b6e8d0aacca4d03545e04
tree88691c5fd5004e2099bd2d0725fe7143cd7aa2ca
parent546cd0d7664ee0f120ef3b267d4303190bdfdb94
Minor optimizations based on ParallelContext having nworkers_launched.

Originally, we didn't have nworkers_launched, so code that used parallel
contexts had to be preprared for the possibility that not all of the
workers requested actually got launched.  But now we can count on knowing
the number of workers that were successfully launched, which can shave
off a few cycles and simplify some code slightly.

Amit Kapila, reviewed by Haribabu Kommi, per a suggestion from Peter
Geoghegan.
src/backend/access/transam/parallel.c
src/backend/executor/execParallel.c
src/backend/executor/nodeGather.c