-- integer product aggregate

create or replace function
	 accum2(state integer, value integer) returns integer
as $$
select state * value;
$$ language sql;

create or replace aggregate product2(integer) (
	stype     = integer,
	sfunc     = accum,
	initcond  = 1
);

