オブジェクト拡張 (19) オブジェクト拡張 (19) 集計関数の拡張 3 各インスタンスの項目値に依存しない集計関数 sfunc2だけを使う集計関数の登録 CREATE AGGREGATE my_count ( sfunc2 = int4inc, -- 1を加える basetype = int4, stype2 = int4, initcond2 = '0'); 集計関数の使用例 SELECT my_count(*) as emp_count from EMP; 集計関数の削除 DROP AGGREGATE my_count int4;