I assume this is not something for our PostgreSQL CVS, even the later SRF implementation.
I agree with that assessment, at least in its present state. For example:
regression=# select * from unnest(array[[1,2,3],[4,5,6]]); unnest -------- 1 2 3 4 5 6 (6 rows)
Per SQL99 I think that ought to return something like:
-- output faked regression=# select * from unnest(array[[1,2,3],[4,5,6]]); unnest -------- {1,2,3} {4,5,6} (2 rows)
Problem is that a polymorphic SRF cannot (currently at least) both accept and return type anyarray.
Joe
---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html