-
- Downloads
Remove the Query structure from the executor's API. This allows us to stop
storing mostly-redundant Query trees in prepared statements, portals, etc. To replace Query, a new node type called PlannedStmt is inserted by the planner at the top of a completed plan tree; this carries just the fields of Query that are still needed at runtime. The statement lists kept in portals etc. now consist of intermixed PlannedStmt and bare utility-statement nodes --- no Query. This incidentally allows us to remove some fields from Query and Plan nodes that shouldn't have been there in the first place. Still to do: simplify the execution-time range table; at the moment the range table passed to the executor still contains Query trees for subqueries. initdb forced due to change of stored rules.
Showing
- src/backend/commands/copy.c 5 additions, 4 deletionssrc/backend/commands/copy.c
- src/backend/commands/explain.c 7 additions, 6 deletionssrc/backend/commands/explain.c
- src/backend/commands/portalcmds.c 4 additions, 6 deletionssrc/backend/commands/portalcmds.c
- src/backend/commands/prepare.c 91 additions, 95 deletionssrc/backend/commands/prepare.c
- src/backend/executor/execMain.c 72 additions, 82 deletionssrc/backend/executor/execMain.c
- src/backend/executor/execUtils.c 2 additions, 2 deletionssrc/backend/executor/execUtils.c
- src/backend/executor/functions.c 29 additions, 21 deletionssrc/backend/executor/functions.c
- src/backend/executor/spi.c 67 additions, 82 deletionssrc/backend/executor/spi.c
- src/backend/nodes/copyfuncs.c 45 additions, 14 deletionssrc/backend/nodes/copyfuncs.c
- src/backend/nodes/equalfuncs.c 16 additions, 13 deletionssrc/backend/nodes/equalfuncs.c
- src/backend/nodes/outfuncs.c 37 additions, 11 deletionssrc/backend/nodes/outfuncs.c
- src/backend/nodes/readfuncs.c 17 additions, 6 deletionssrc/backend/nodes/readfuncs.c
- src/backend/optimizer/path/allpaths.c 4 additions, 4 deletionssrc/backend/optimizer/path/allpaths.c
- src/backend/optimizer/plan/planagg.c 2 additions, 3 deletionssrc/backend/optimizer/plan/planagg.c
- src/backend/optimizer/plan/planner.c 43 additions, 23 deletionssrc/backend/optimizer/plan/planner.c
- src/backend/parser/analyze.c 7 additions, 18 deletionssrc/backend/parser/analyze.c
- src/backend/parser/gram.y 36 additions, 23 deletionssrc/backend/parser/gram.y
- src/backend/tcop/postgres.c 74 additions, 76 deletionssrc/backend/tcop/postgres.c
- src/backend/tcop/pquery.c 220 additions, 118 deletionssrc/backend/tcop/pquery.c
- src/backend/tcop/utility.c 182 additions, 128 deletionssrc/backend/tcop/utility.c
Loading
Please register or sign in to comment