-
- Downloads
Account for SRFs in targetlists in planner rowcount estimates.
We made use of the ROWS estimate for set-returning functions used in FROM, but not for those used in SELECT targetlists; which is a bit of an oversight considering there are common usages that require the latter approach. Improve that. (I had initially thought it might be worth folding this into cost_qual_eval, but after investigation concluded that that wouldn't be very helpful, so just do it separately.) Per complaint from David Johnston. Back-patch to 9.2, but not further, for fear of destabilizing plan choices in existing releases.
Showing
- src/backend/optimizer/path/costsize.c 8 additions, 1 deletionsrc/backend/optimizer/path/costsize.c
- src/backend/optimizer/plan/createplan.c 10 additions, 19 deletionssrc/backend/optimizer/plan/createplan.c
- src/backend/optimizer/plan/planagg.c 2 additions, 4 deletionssrc/backend/optimizer/plan/planagg.c
- src/backend/optimizer/plan/planner.c 57 additions, 21 deletionssrc/backend/optimizer/plan/planner.c
- src/backend/optimizer/util/clauses.c 39 additions, 3 deletionssrc/backend/optimizer/util/clauses.c
- src/include/optimizer/clauses.h 1 addition, 0 deletionssrc/include/optimizer/clauses.h
- src/include/optimizer/planner.h 3 additions, 0 deletionssrc/include/optimizer/planner.h
Loading
Please register or sign in to comment