Re: Multi-dimensional arrays

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Re: Multi-dimensional arrays
Дата
Msg-id CAA-aLv72rrTtY_nZTEVsd_fWFy1vfmGrrTugv=QzpRYo3mxbOw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Multi-dimensional arrays  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Multi-dimensional arrays  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On 15 March 2014 16:21, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Raymond O'Donnell" <rod@iol.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


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Multi-dimensional arrays
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Multi-dimensional arrays