Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Postgresqlでは、追加の集計関数を作成できます
CREATE AGGREGATE name(...);
しかし、集計がデータベース内に既に存在する場合、これはエラーになります。では、Postgres データベースに集計が既に存在するかどうかを確認するにはどうすればよいですか?
SELECT * FROM pg_proc WHERE proname = 'name' AND proisagg;