From 6779c55c228ba5904dc767a7882b47a2b4c74ff7 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 27 Feb 2002 19:36:13 +0000 Subject: 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. --- src/include/executor/execdefs.h | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src/include/executor/execdefs.h') diff --git a/src/include/executor/execdefs.h b/src/include/executor/execdefs.h index b6e7195771..bdb4dce13c 100644 --- a/src/include/executor/execdefs.h +++ b/src/include/executor/execdefs.h @@ -7,30 +7,13 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: execdefs.h,v 1.11 2001/11/05 17:46:33 momjian Exp $ + * $Id: execdefs.h,v 1.12 2002/02/27 19:35:51 tgl Exp $ * *------------------------------------------------------------------------- */ #ifndef EXECDEFS_H #define EXECDEFS_H -/* ---------------- - * ExecutePlan() tuplecount definitions - * ---------------- - */ -#define ALL_TUPLES 0 /* return all tuples */ -#define ONE_TUPLE 1 /* return only one tuple */ - -/* ---------------- - * constants used by ExecMain - * ---------------- - */ -#define EXEC_RUN 3 -#define EXEC_FOR 4 -#define EXEC_BACK 5 -#define EXEC_RETONE 6 -#define EXEC_RESULT 7 - /* ---------------- * Merge Join states * ---------------- -- cgit v1.2.1