Re: Number of dimensions of an array parameter

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Number of dimensions of an array parameter
Дата
Msg-id 27770.1147106919@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Number of dimensions of an array parameter  (Thomas Hallgren <thomas@tada.se>)
Список pgsql-hackers
Thomas Hallgren <thomas@tada.se> writes:
> Only allow arrays with one dimension unless the parameter is of a domain 
> type (domains are apparently stored with the actual number of 
> dimensions).

No, they don't enforce dimensionality any more than ordinary array
columns do.  typndims and attndims are both effectively just booleans:
is it an array or not?

> IMO, there is something seriously wrong here. Clearly the number of 
> dimensions is a property of the type.

[ shrug... ] That's debatable.  You could just as well argue that the
exact array size should be enforced by the type system.
        regards, tom lane


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

Предыдущее
От: Thomas Hallgren
Дата:
Сообщение: Number of dimensions of an array parameter
Следующее
От: Thomas Hallgren
Дата:
Сообщение: Re: Number of dimensions of an array parameter