Re: Multi-dimensional arrays

From: Thom Brown <thom(at)linux(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: rod <rod(at)iol(dot)ie>, PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Multi-dimensional arrays
Date: 2014-03-15 17:07:11
Message-ID: CAA-aLv72rrTtY_nZTEVsd_fWFy1vfmGrrTugv=QzpRYo3mxbOw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 15 March 2014 16:21, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "Raymond O'Donnell" <rod(at)iol(dot)ie> writes:
>> True... though that gives you a 2D array, whereas I was hoping for a 1D
>> array from (array[...])[1].
>
> Postgres does not think of multi-D arrays as being arrays of arrays.
> This is problematic mainly because the SQL standard does think of them
> that way. I'm not sure if there's any hope of changing it though ---
> there's probably too much code that would be broken if we did.

Could we potentially introduce a GUC to get it to behave in a less
surprising way, and eventually make it the default?

--
Thom

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2014-03-15 17:08:58 Re: Multi-dimensional arrays
Previous Message Tom Lane 2014-03-15 16:21:41 Re: Multi-dimensional arrays