In Postgresql you can create additional Aggregate Functions with
CREATE AGGREGATE name(...);
But this gives an error if the aggregate already exists inside the database, so how can I check if a Aggregate already exists in the Postgres Database?
![]() ![]() ![]() |
In Postgresql you can create additional Aggregate Functions with
But this gives an error if the aggregate already exists inside the database, so how can I check if a Aggregate already exists in the Postgres Database? |
|||
|
![]() ![]() ![]() |
SELECT * FROM pg_proc WHERE proname = 'name' AND proisagg; |
||
|