|
7 | 7 | * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California
|
9 | 9 | *
|
10 |
| - * $PostgreSQL: pgsql/src/include/executor/executor.h,v 1.147 2008/03/28 00:21:56 tgl Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/include/executor/executor.h,v 1.148 2008/07/18 18:23:47 tgl Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
|
60 | 60 | ((*(expr)->evalfunc) (expr, econtext, isNull, isDone))
|
61 | 61 |
|
62 | 62 |
|
| 63 | +/* Hook for plugins to get control in ExecutorRun() */ |
| 64 | +typedef TupleTableSlot *(*ExecutorRun_hook_type) (QueryDesc *queryDesc, |
| 65 | + ScanDirection direction, |
| 66 | + long count); |
| 67 | +extern PGDLLIMPORT ExecutorRun_hook_type ExecutorRun_hook; |
| 68 | + |
| 69 | + |
63 | 70 | /*
|
64 | 71 | * prototypes from functions in execAmi.c
|
65 | 72 | */
|
@@ -136,6 +143,8 @@ extern HeapTuple ExecRemoveJunk(JunkFilter *junkfilter, TupleTableSlot *slot);
|
136 | 143 | extern void ExecutorStart(QueryDesc *queryDesc, int eflags);
|
137 | 144 | extern TupleTableSlot *ExecutorRun(QueryDesc *queryDesc,
|
138 | 145 | ScanDirection direction, long count);
|
| 146 | +extern TupleTableSlot *standard_ExecutorRun(QueryDesc *queryDesc, |
| 147 | + ScanDirection direction, long count); |
139 | 148 | extern void ExecutorEnd(QueryDesc *queryDesc);
|
140 | 149 | extern void ExecutorRewind(QueryDesc *queryDesc);
|
141 | 150 | extern void InitResultRelInfo(ResultRelInfo *resultRelInfo,
|
|
0 commit comments