AS 'MODULE_PATHNAME','int_agg_final_array'
LANGUAGE 'C' IMMUTABLE STRICT;
--- The aggration funcion.
+-- The aggregate function itself
-- uses the above functions to create an array of integers from an aggregation.
-DROP AGGREGATE int_array_aggregate(int4);
CREATE AGGREGATE int_array_aggregate (
BASETYPE = int4,
SFUNC = int_agg_state,
-- Adjust this setting to control where the objects get created.
SET search_path = public;
-DROP TYPE pgstattuple_type CASCADE;
CREATE TYPE pgstattuple_type AS (
table_len BIGINT, -- physical table length in bytes
tuple_count BIGINT, -- number of live tuples