Bruce Momjian <bruce(at)momjian(dot)us> writes:
> ... but if you supply parameters to the function, it does not work:
> test=> CREATE OR REPLACE FUNCTION xxx(aaa INTEGER) RETURNS void AS $$
> ERROR: cannot change name of input parameter "yyy"
> HINT: Use DROP FUNCTION first.
This is failing because you tried to redeclare xxx(int) with a different
name for its parameter, which is no longer allowed. It has nothing to
do with the question at hand.
regards, tom lane