--
-- int2_avg_accum/2
--
create or replace function int2_avg_accum(
  bigint[],
  smallint
) returns _int8 as $$
int2_avg_accum$$ language plpgsql;