-
- Downloads
Clean up BeginCommand and related routines. BeginCommand and EndCommand
are now both invoked once per received SQL command (raw parsetree) from pg_exec_query_string. BeginCommand is actually just an empty routine at the moment --- all its former operations have been pushed into tuple receiver setup routines in printtup.c. This makes for a clean distinction between BeginCommand/EndCommand (once per command) and the tuple receiver setup/teardown routines (once per ExecutorRun call), whereas the old code was quite ad hoc. Along the way, clean up the calling conventions for ExecutorRun a little bit.
Showing
- src/backend/access/common/printtup.c 70 additions, 12 deletionssrc/backend/access/common/printtup.c
- src/backend/access/common/tupdesc.c 2 additions, 2 deletionssrc/backend/access/common/tupdesc.c
- src/backend/commands/command.c 35 additions, 45 deletionssrc/backend/commands/command.c
- src/backend/executor/execMain.c 33 additions, 69 deletionssrc/backend/executor/execMain.c
- src/backend/executor/functions.c 7 additions, 7 deletionssrc/backend/executor/functions.c
- src/backend/executor/spi.c 34 additions, 26 deletionssrc/backend/executor/spi.c
- src/backend/tcop/dest.c 13 additions, 101 deletionssrc/backend/tcop/dest.c
- src/backend/tcop/postgres.c 15 additions, 14 deletionssrc/backend/tcop/postgres.c
- src/backend/tcop/pquery.c 20 additions, 41 deletionssrc/backend/tcop/pquery.c
- src/backend/utils/mmgr/portalmem.c 3 additions, 3 deletionssrc/backend/utils/mmgr/portalmem.c
- src/include/access/printtup.h 4 additions, 3 deletionssrc/include/access/printtup.h
- src/include/executor/execdefs.h 1 addition, 18 deletionssrc/include/executor/execdefs.h
- src/include/executor/execdesc.h 7 additions, 2 deletionssrc/include/executor/execdesc.h
- src/include/executor/executor.h 2 additions, 2 deletionssrc/include/executor/executor.h
- src/include/tcop/dest.h 20 additions, 16 deletionssrc/include/tcop/dest.h
Loading
Please register or sign in to comment