how can I select into an array? - Mailing list pgsql-general

From Andy Kriger
Subject how can I select into an array?
Date
Msg-id 200402061555.i16Ft6G29410@server1.greaterthanone.com
Whole thread Raw
Responses Re: how can I select into an array?
Re: how can I select into an array?
Re: how can I select into an array?
List pgsql-general

I would like to select strings from a table and return them as an array
For example,
select new_array(name) from my_tbl
would return
String[] { name1, name2, name3, etc }

Is this possible with built-in SQL/psql functions?
If not, how hard would it be to write a function that does this? (given that I have coding experience but none writing pgsql functions)

Andy Kriger | Software Mechanic | Greater Than One, Inc.
28 West 27th Street | 7th Floor | New York, NY 10001
P: 212.252.7197 | F: 212.252.7364 | E: akriger@greaterthanone.com

pgsql-general by date:

Previous
From: "Peter Alberer"
Date:
Subject: Re: Run 2 versions of Postgresql on one machine?
Next
From: Richard Huxton
Date:
Subject: Re: newbie question... how do I get table structure?