Re: Question about OID and TCID - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: Question about OID and TCID
Date
Msg-id 4CF3DCA6.6060506@iol.ie
Whole thread Raw
In response to Re: Question about OID and TCID  (Zhipan Wang <wzhipan@soe.ucsc.edu>)
List pgsql-general
On 29/11/2010 16:56, Zhipan Wang wrote:
> Since in-place seems not possible, I am trying to use arrays to store
> different ranges of that column, and it's fast to fetch a big array,
> so I believe an array is stored continuously on disk.
>
> I can convert an array to a column easily by unnest() function, but I
> didn't find any function that converts a column to an array. Is there
> a efficient method to do that?

I think array_agg() is what you want.

   http://www.postgresql.org/docs/9.0/static/functions-aggregate.html

Ray.


--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

pgsql-general by date:

Previous
From: Zhipan Wang
Date:
Subject: Re: Question about OID and TCID
Next
From: hubert depesz lubaczewski
Date:
Subject: PostgreSQL hanging on new connections?