if you can in plpgsql 7.2.x return array of known type, you can replace anyarray and anyelement like varchar[], varchar. But I don't know if it 7.2 supported.
PL/pgSQL array support in anything earlier than 7.4 is pretty weak. I would strongly recommend upgrading to 7.4 if arrays are important to you.
Joe
---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly