Add a cardinality function for arrays.

Robert Haas <rhaas@postgresql.org>

Commit: 01f7808b3eafcae1f6077f2f61e13b4c132ccd47
Author: Robert Haas <rhaas@postgresql.org>
Date: 2014-01-21T17:38:53Z
Releases: 9.4.0
Add a cardinality function for arrays.

Unlike our other array functions, this considers the total number of
elements across all dimensions, and returns 0 rather than NULL when the
array has no elements.  But it seems that both of those behaviors are
almost universally disliked, so hopefully that's OK.

Marko Tiikkaja, reviewed by Dean Rasheed and Pavel Stehule

Files