array_agg ( anynonarray ORDER BY input_sort_columns ) → anyarrayCollects all the input values, including nulls, into an array.
Functions / Aggregate Functions
array_agg
Read the PG 18 manualCollects all the input values, including nulls, into an array.
Reading PG 18current·documented in 19 of 27 versions, 8.4 to 20
Signatures & examples
array_agg ( anyarray ORDER BY input_sort_columns ) → anyarrayConcatenates all the input arrays into an array of one higher dimension. (The inputs must all have the same dimensionality, and cannot be empty or null.)
Definition snapshot: b7bd9cda · English manual source