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?
SELECT * FROM pg_proc WHERE proname = 'name' AND proisagg;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With