Re: Array types - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: Array types
Date
Msg-id b42b73150904080846n257f7c21rd77f63f7f43c4063@mail.gmail.com
Whole thread Raw
In response to Re: Array types  (Greg Stark <stark@enterprisedb.com>)
List pgsql-hackers
On Wed, Apr 8, 2009 at 11:35 AM, Greg Stark <stark@enterprisedb.com> wrote:
> On Wed, Apr 8, 2009 at 4:11 PM, John Lister
> <john.lister-ps@kickstone.com> wrote:
>> Cheers for the pointers. Am i right in thinking that if i get an array of
>> arrays, the nested arrays are sent in wire format as well - it seems to be
>> from the docs.
>
> No, you can't easily get an array of arrays in Postgres. You can get
> multi-dimensional arrays but that's one big array with multiple
> dimensions.  The text output form does look like an array of arrays
> but they don't behave like you might think they would:

one note about that: you can have array of composites with arrays in
them, so you can get arbitrary levels of nesting.

merlin


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: psql \d commands and information_schema
Next
From: Robert Haas
Date:
Subject: Re: Closing some 8.4 open items