Consider I have a function like (but the following does not work):
CREATE FUNCTION func(VARIADIC params character varying[])
RETURNS type1 AS
$BODY$
SELECT * FROM func2('id', array_to_string($1,'###’)
$BODY$
LANGUAGE sql VOLATILE;
The signature of func2 is:
func2(character varying, character varying)
Thus, what I am trying to do is convert the array from “func” into a long string that is delimited by say the characters “###”. I then want to pass the entire string as the second argument of func2.
VARIADICkeyword does not make sense in your example. If there isn't more to it, just drop it.