Re: patch: array_ndims

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: patch: array_ndims
Дата
Msg-id 49106142.9010708@gmx.net
обсуждение исходный текст
Ответ на patch: array_ndims  ("Robert Haas" <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas wrote:
> After reading Josh Berkus's email suggesting that the intagg module be
> dropped, I was wondering what would be required to create a array
> enumerator (variously called unnest, unroll, array_enum, and, as
> contemplated by the TODO list, array_to_set).  Pavel Stehule's
> generate_subscripts function provides most of what is needed -
> however, you need to know the number of dimensions in the array, and
> it appears we don't have a function to provide that information, at
> least not in a straightforward fashion.  That seems like a pretty
> useful thing to have anyway, so here's a patch to add it.

I have committed your array_ndims function with the addition of a small 
regression test, and I changed the return type to integer because that 
is what the rest of the array functions use for dimension information as 
well.



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

Предыдущее
От: Dmitry Turin
Дата:
Сообщение: Re: SQL5 budget
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Enable pl/python to return records based on multiple OUT params