Compat with postgres 9.1 for metadata operations

ALTER FUNCTION does not work on aggregates on 9.1.