postgresql_16:9.6.19.1 Functions
PostgreSQL 16 > Appendixes > Additional Supplied Modules and Extensions > intagg — integer aggregator and enumerator > Functions
The aggregator is an aggregate function int_array_aggregate(integer) that produces an integer array containing exactly the integers it is fed. This is a wrapper around array_agg, which does the same thing for any array type.
The enumerator is a function int_array_enum(integer[]) that returns setof integer. It is essentially the reverse operation of the aggregator: given an array of integers, expand it into a set of rows. This is a wrapper around unnest, which does the same thing for any array type.