diff options
| author | Tom Lane | 2002-02-27 19:36:13 +0000 |
|---|---|---|
| committer | Tom Lane | 2002-02-27 19:36:13 +0000 |
| commit | 6779c55c228ba5904dc767a7882b47a2b4c74ff7 (patch) | |
| tree | 27a1df60ccf81098405bd477d653da6edebce6c0 /src/include/access | |
| parent | e22c9c44756da85bf1e453f83bf260c9e5ef5813 (diff) | |
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.
Diffstat (limited to 'src/include/access')
| -rw-r--r-- | src/include/access/printtup.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/access/printtup.h b/src/include/access/printtup.h index ff775eb2697..c1d8db17adb 100644 --- a/src/include/access/printtup.h +++ b/src/include/access/printtup.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: printtup.h,v 1.18 2001/11/05 17:46:31 momjian Exp $ + * $Id: printtup.h,v 1.19 2002/02/27 19:35:40 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -18,9 +18,10 @@ extern DestReceiver *printtup_create_DR(bool isBinary); -extern void showatts(char *name, TupleDesc attinfo); +extern void debugSetup(DestReceiver *self, int operation, + const char *portalName, TupleDesc typeinfo); extern void debugtup(HeapTuple tuple, TupleDesc typeinfo, - DestReceiver *self); + DestReceiver *self); /* XXX this one is really in executor/spi.c */ extern void spi_printtup(HeapTuple tuple, TupleDesc tupdesc, |
