array_length() function, and for SQL compatibility also cardinality()

Peter Eisentraut <peter_e@gmx.net>

Commit: f98f6ee0641e87c6ecc2524f5d0a8b54924ffd14
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2008-11-12T13:09:28Z
Releases: 8.4.0
array_length() function, and for SQL compatibility also cardinality()
function as a special case.

This version still has the suspicious behavior of returning null for an
empty array (rather than zero), but this may need a wholesale revision of
empty array behavior, currently under discussion.

Jim Nasby, Robert Haas, Peter Eisentraut

Files