diff options
author | Noah Misch <noah@leadboat.com> | 2013-12-10 09:34:37 -0500 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2013-12-10 09:34:37 -0500 |
commit | 53685d79813a46c7e3a46ae4b1210f608d41d6ab (patch) | |
tree | 8760f628f2d5baf874307624248f92e80475d9ca /src/include/nodes/parsenodes.h | |
parent | 01cc1fecfdecc37649b3996100ab1f03ccc8ab7e (diff) | |
download | postgresql-53685d79813a46c7e3a46ae4b1210f608d41d6ab.tar.gz postgresql-53685d79813a46c7e3a46ae4b1210f608d41d6ab.zip |
Rename TABLE() to ROWS FROM().
SQL-standard TABLE() is a subset of UNNEST(); they deal with arrays and
other collection types. This feature, however, deals with set-returning
functions. Use a different syntax for this feature to keep open the
possibility of implementing the standard TABLE().
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r-- | src/include/nodes/parsenodes.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 6a5555f918d..0ad7586853b 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -466,11 +466,11 @@ typedef struct RangeSubselect * RangeFunction - function call appearing in a FROM clause * * functions is a List because we use this to represent the construct - * TABLE(func1(...), func2(...), ...). Each element of this list is a + * ROWS FROM(func1(...), func2(...), ...). Each element of this list is a * two-element sublist, the first element being the untransformed function * call tree, and the second element being a possibly-empty list of ColumnDef * nodes representing any columndef list attached to that function within the - * TABLE() syntax. + * ROWS FROM() syntax. * * alias and coldeflist represent any alias and/or columndef list attached * at the top level. (We disallow coldeflist appearing both here and @@ -481,7 +481,7 @@ typedef struct RangeFunction NodeTag type; bool lateral; /* does it have LATERAL prefix? */ bool ordinality; /* does it have WITH ORDINALITY suffix? */ - bool is_table; /* is result of TABLE() syntax? */ + bool is_rowsfrom; /* is result of ROWS FROM() syntax? */ List *functions; /* per-function information, see above */ Alias *alias; /* table alias & optional column aliases */ List *coldeflist; /* list of ColumnDef nodes to describe result |