is there an aggregate function in postgres that returns an array?
something like
SELECT ARRAY (name) FROM TABLE WHERE LAST = 'smith';
array------------------{{"sam"},{"mike"}}