mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Add SQL Standard WITH ORDINALITY support for UNNEST (and any other SRF)
Author: Andrew Gierth, David Fetter Reviewers: Dean Rasheed, Jeevan Chalke, Stephen Frost
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user