]> granicus.if.org Git - postgresql/commit
array_length() function, and for SQL compatibility also cardinality()
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 12 Nov 2008 13:09:28 +0000 (13:09 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 12 Nov 2008 13:09:28 +0000 (13:09 +0000)
commitf98f6ee0641e87c6ecc2524f5d0a8b54924ffd14
treea192c5bf9cfea3c4581f16f19ec7f6e8245f3c2a
parent4c22564471e2724bcc62bc2c61ece796c946f16e
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
doc/src/sgml/array.sgml
doc/src/sgml/func.sgml
src/backend/utils/adt/arrayfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/utils/array.h
src/test/regress/expected/arrays.out
src/test/regress/sql/arrays.sql