diff options
author | Greg Stark <stark@mit.edu> | 2013-07-29 16:38:01 +0100 |
---|---|---|
committer | Greg Stark <stark@mit.edu> | 2013-07-29 16:38:01 +0100 |
commit | c62736cc37f6812d1ebb41ea5a86ffe60564a1f0 (patch) | |
tree | 3cb1654476a7e45620d9a3320a002495d000380e /src/include/nodes/execnodes.h | |
parent | 55cbfa5366b78d93cd1ff8c4c622b552985344f6 (diff) |
Add SQL Standard WITH ORDINALITY support for UNNEST (and any other SRF)
Author: Andrew Gierth, David Fetter
Reviewers: Dean Rasheed, Jeevan Chalke, Stephen Frost
Diffstat (limited to 'src/include/nodes/execnodes.h')
-rw-r--r-- | src/include/nodes/execnodes.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index 298af26e962..3b430e0f24a 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -1395,7 +1395,10 @@ typedef struct SubqueryScanState * function appearing in FROM (typically a function returning set). * * eflags node's capability flags - * tupdesc expected return tuple description + * ordinal column value for WITH ORDINALITY + * scan_tupdesc scan tuple descriptor + * func_tupdesc function tuple descriptor + * func_slot function result slot, or null * tuplestorestate private state of tuplestore.c * funcexpr state for function expression being evaluated * ---------------- @@ -1404,7 +1407,10 @@ typedef struct FunctionScanState { ScanState ss; /* its first field is NodeTag */ int eflags; - TupleDesc tupdesc; + int64 ordinal; + TupleDesc scan_tupdesc; + TupleDesc func_tupdesc; + TupleTableSlot *func_slot; Tuplestorestate *tuplestorestate; ExprState *funcexpr; } FunctionScanState; |