]> granicus.if.org Git - postgresql/commit
Clean up BeginCommand and related routines. BeginCommand and EndCommand
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Feb 2002 19:36:13 +0000 (19:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Feb 2002 19:36:13 +0000 (19:36 +0000)
commit6779c55c228ba5904dc767a7882b47a2b4c74ff7
tree27a1df60ccf81098405bd477d653da6edebce6c0
parente22c9c44756da85bf1e453f83bf260c9e5ef5813
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.
15 files changed:
src/backend/access/common/printtup.c
src/backend/access/common/tupdesc.c
src/backend/commands/command.c
src/backend/executor/execMain.c
src/backend/executor/functions.c
src/backend/executor/spi.c
src/backend/tcop/dest.c
src/backend/tcop/postgres.c
src/backend/tcop/pquery.c
src/backend/utils/mmgr/portalmem.c
src/include/access/printtup.h
src/include/executor/execdefs.h
src/include/executor/execdesc.h
src/include/executor/executor.h
src/include/tcop/dest.h