return an array as aggregate result?

From: "K(dot) Ari Krupnikov" <ari(at)cogsci(dot)ed(dot)ac(dot)uk>
To: pgsql-general(at)postgreSQL(dot)org
Subject: return an array as aggregate result?
Date: 2001-11-15 22:35:32
Message-ID: 3BF44334.3A24734C@cogsci.ed.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

is there an aggregate function in postgres that returns an array?

something like

SELECT ARRAY (name) FROM TABLE WHERE LAST = 'smith';

array
------------------
{{"sam"},{"mike"}}

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-11-15 22:49:44 Re: Bug?
Previous Message Culley Harrelson 2001-11-15 22:34:18 [PHP] Re: psql with PHP question