Re: [PATCH] Exorcise "zero-dimensional" arrays

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: [PATCH] Exorcise "zero-dimensional" arrays
Дата
Msg-id m2d2u9qvn9.fsf@2ndQuadrant.fr
обсуждение исходный текст
Ответ на Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)  (Brendan Jurd <direvus@gmail.com>)
Список pgsql-hackers
Brendan Jurd <direvus@gmail.com> writes:
> Well for what it's worth I would expect cardinality() to return the
> total number of elements in the array (per ArrayGetNItems).  It's
> consistent with the spec's identification of an array as a
> "collection".  You can chunk the elements into dimensions however you
> want, but it's still a collection of elements, and the cardinality is
> still the number of elements.

+1

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Why there is a PG_GETARG_UINT32 and PG_RETURN_UINT32?
Следующее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Clang compiler warning on 9.3 HEAD