mirror of
https://github.com/postgres/postgres.git
synced 2026-02-20 16:30:40 -05:00
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.
37 lines
1,020 B
C
37 lines
1,020 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* execdefs.h
|
|
*
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: execdefs.h,v 1.12 2002/02/27 19:35:51 tgl Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef EXECDEFS_H
|
|
#define EXECDEFS_H
|
|
|
|
/* ----------------
|
|
* Merge Join states
|
|
* ----------------
|
|
*/
|
|
#define EXEC_MJ_INITIALIZE 1
|
|
#define EXEC_MJ_JOINMARK 2
|
|
#define EXEC_MJ_JOINTEST 3
|
|
#define EXEC_MJ_JOINTUPLES 4
|
|
#define EXEC_MJ_NEXTOUTER 5
|
|
#define EXEC_MJ_TESTOUTER 6
|
|
#define EXEC_MJ_NEXTINNER 7
|
|
#define EXEC_MJ_SKIPOUTER_BEGIN 8
|
|
#define EXEC_MJ_SKIPOUTER_TEST 9
|
|
#define EXEC_MJ_SKIPOUTER_ADVANCE 10
|
|
#define EXEC_MJ_SKIPINNER_BEGIN 11
|
|
#define EXEC_MJ_SKIPINNER_TEST 12
|
|
#define EXEC_MJ_SKIPINNER_ADVANCE 13
|
|
#define EXEC_MJ_ENDOUTER 14
|
|
#define EXEC_MJ_ENDINNER 15
|
|
|
|
#endif /* EXECDEFS_H */
|