postgresql_16:7.1.102.4 Examples
PostgreSQL 16 > Reference > SQL Commands > DROP AGGREGATE > Examples
To remove the aggregate function myavg for type integer: DROP AGGREGATE myavg(integer);
To remove the hypothetical-set aggregate function myrank, which takes an arbitrary list of ordering columns and a matching list of direct arguments: DROP AGGREGATE myrank(VARIADIC "any" ORDER BY VARIADIC "any");
To remove multiple aggregate functions in one command: DROP AGGREGATE myavg(integer), myavg(bigint);