ALTER AGGREGATE — change the definition of an aggregate function
ALTER AGGREGATEname
(type
) RENAME TOnewname
ALTER AGGREGATEname
(type
) OWNER TOnewowner
name
The name (optionally schema-qualified) of an existing aggregate function.
type
The argument data type of the aggregate function, or
*
if the function accepts any data type.
newname
The new name of the aggregate function.
newowner
The new owner of the aggregate function. You must be a superuser to change an aggregate's owner.