Re: Array types

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Greg Stark <stark(at)enterprisedb(dot)com>
Cc: John Lister <john(dot)lister-ps(at)kickstone(dot)com>, Andrew Chernow <ac(at)esilo(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Array types
Date: 2009-04-08 15:46:07
Message-ID: b42b73150904080846n257f7c21rd77f63f7f43c4063@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Apr 8, 2009 at 11:35 AM, Greg Stark <stark(at)enterprisedb(dot)com> wrote:
> On Wed, Apr 8, 2009 at 4:11 PM, John Lister
> <john(dot)lister-ps(at)kickstone(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2009-04-08 15:50:19 Re: Closing some 8.4 open items
Previous Message John Lister 2009-04-08 15:45:24 Re: Array types