Ingmar Brouns <swingi(at)gmail(dot)com> writes:
> I was trying to write a variadic function where the arguments themselves
> are arrays, but calling it does not seem to work. I couldn't find
> documentation mentioning this restriction
> postgres=# create or replace function foo(variadic args integer[][])
The reason that doesn't work the way you're expecting is that
1-dimensional integer arrays are not a distinct datatype from
2-dimensional integer arrays. The system just sees "variadic int[]"
and expects simple integers in a variadic expansion. Sorry.
regards, tom lane