-
- Downloads
Still another try at fixing scanjoin_target insertion into parallel plans.
The previous code neglected the fact that the scanjoin_target might carry sortgroupref labelings that we need to absorb. Instead, do create_projection_path() unconditionally, and tweak the path's cost estimate after the fact. (I'm now convinced that we ought to refactor the way we account for sometimes not needing a separate projection step, but right now is not the time for that sort of cleanup.) Problem identified by Amit Kapila, patch by me.
Showing
- src/backend/optimizer/plan/planner.c 21 additions, 18 deletionssrc/backend/optimizer/plan/planner.c
- src/test/regress/expected/select_parallel.out 17 additions, 1 deletionsrc/test/regress/expected/select_parallel.out
- src/test/regress/sql/select_parallel.sql 5 additions, 1 deletionsrc/test/regress/sql/select_parallel.sql
Loading
Please register or sign in to comment