The named aggregate does not exist in your database. Before you can use a user-defined aggregate, you must create the necessary support functions and register the new aggregate with a CREATE AGGREGATE statement.