From c889ebce0aa5f848d680547e3af0aad8b9e577a7 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 14 Nov 2008 00:51:47 +0000 Subject: 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. --- doc/src/sgml/func.sgml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index aee74366b01..67500340b0f 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -9482,6 +9482,17 @@ SELECT NULLIF(value, '(none)') ... string_to_array('xx~^~yy~^~zz', '~^~') {xx,yy,zz} + + + + unnest(anyarray) + + + setof anyelement + expand an array to a set of rows + unnest(ARRAY[1,2]) + 12 (2 rows) + -- cgit v1.2.3