Implement the basic form of UNNEST, ie unnest(anyarray) returns setof
Tom Lane <tgl@sss.pgh.pa.us>
Implement the basic form of UNNEST, ie unnest(anyarray) returns setof anyelement. This lacks the WITH ORDINALITY option, as well as the multiple input arrays option added in the most recent SQL specs. But it's still a pretty useful subset of the spec's functionality, and it is enough to allow obsoleting contrib/intagg.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +12 −1 |
| src/backend/utils/adt/arrayfuncs.c | modified | +105 −1 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_proc.h | modified | +3 −1 |
| src/include/utils/array.h | modified | +2 −1 |
| src/test/regress/expected/arrays.out | modified | +62 −0 |
| src/test/regress/sql/arrays.sql | modified | +7 −0 |