Add parallel_leader_participation GUC.
Robert Haas <rhaas@postgresql.org>
Add parallel_leader_participation GUC. Sometimes, for testing, it's useful to have the leader do nothing but read tuples from workers; and it's possible that could work out better even in production. Thomas Munro, reviewed by Amit Kapila and by me. A few final tweaks by me. Discussion: http://postgr.es/m/CAEepm=2U++Lp3bNTv2Bv_kkr5NE2pOyHhxU=G0YTa4ZhSYhHiw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/config.sgml | modified | +26 −0 |
| src/backend/executor/nodeGather.c | modified | +5 −3 |
| src/backend/executor/nodeGatherMerge.c | modified | +4 −2 |
| src/backend/optimizer/path/costsize.c | modified | +8 −4 |
| src/backend/optimizer/plan/planner.c | modified | +1 −0 |
| src/backend/utils/misc/guc.c | modified | +10 −0 |
| src/backend/utils/misc/postgresql.conf.sample | modified | +1 −0 |
| src/include/optimizer/planmain.h | modified | +1 −0 |
| src/test/regress/expected/select_parallel.out | modified | +113 −0 |
| src/test/regress/sql/select_parallel.sql | modified | +36 −0 |
Documentation touched
Discussion
- A GUC to prevent leader processes from running subplans? 11 messages · 2017-10-17 → 2017-11-20