Re: [PATCH] Exorcise "zero-dimensional" arrays - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: [PATCH] Exorcise "zero-dimensional" arrays
Date
Msg-id m2d2u9qvn9.fsf@2ndQuadrant.fr
Whole thread Raw
In response to Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)  (Brendan Jurd <direvus@gmail.com>)
List 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 by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Why there is a PG_GETARG_UINT32 and PG_RETURN_UINT32?
Next
From: Dimitri Fontaine
Date:
Subject: Re: Clang compiler warning on 9.3 HEAD