Tom Lane wrote:
> In an example like
>
> create function foo (anyelement, anyelement2, anyelement2)
> returns anyarray2
>
> the second and third arguments would be tied to be of the same type,
> and the result would be an array of that type; whereas the first
> argument's type is unrelated.
Another possible example is sprintf:
create function sprintf(text, anyelement, anyelement2, anyelement3, ...)
returns text
In order for this to work in general, we'd need FUNC_MAX_ARGS different
types, which is currently defined as 100 in our code.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.