Rename TABLE() to ROWS FROM().
Noah Misch <noah@leadboat.com>
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().
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/queries.sgml | modified | +8 −8 |
| doc/src/sgml/ref/select.sgml | modified | +9 −10 |
| src/backend/nodes/copyfuncs.c | modified | +1 −1 |
| src/backend/nodes/equalfuncs.c | modified | +1 −1 |
| src/backend/nodes/outfuncs.c | modified | +1 −1 |
| src/backend/parser/gram.y | modified | +15 −14 |
| src/backend/parser/parse_clause.c | modified | +7 −7 |
| src/backend/utils/adt/ruleutils.c | modified | +7 −7 |
| src/include/nodes/parsenodes.h | modified | +3 −3 |
| src/test/regress/expected/rangefuncs.out | modified | +49 −49 |
| src/test/regress/sql/rangefuncs.sql | modified | +22 −22 |