diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2008-11-12 13:09:28 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2008-11-12 13:09:28 +0000 |
commit | f98f6ee0641e87c6ecc2524f5d0a8b54924ffd14 (patch) | |
tree | a192c5bf9cfea3c4581f16f19ec7f6e8245f3c2a /src/include/utils/array.h | |
parent | 4c22564471e2724bcc62bc2c61ece796c946f16e (diff) | |
download | postgresql-f98f6ee0641e87c6ecc2524f5d0a8b54924ffd14.tar.gz postgresql-f98f6ee0641e87c6ecc2524f5d0a8b54924ffd14.zip |
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
Diffstat (limited to 'src/include/utils/array.h')
-rw-r--r-- | src/include/utils/array.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/utils/array.h b/src/include/utils/array.h index 6bbc46e13be..33d9ad3207e 100644 --- a/src/include/utils/array.h +++ b/src/include/utils/array.h @@ -49,7 +49,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/array.h,v 1.69 2008/11/04 14:49:12 petere Exp $ + * $PostgreSQL: pgsql/src/include/utils/array.h,v 1.70 2008/11/12 13:09:28 petere Exp $ * *------------------------------------------------------------------------- */ @@ -199,6 +199,7 @@ extern Datum array_ndims(PG_FUNCTION_ARGS); extern Datum array_dims(PG_FUNCTION_ARGS); extern Datum array_lower(PG_FUNCTION_ARGS); extern Datum array_upper(PG_FUNCTION_ARGS); +extern Datum array_length(PG_FUNCTION_ARGS); extern Datum array_larger(PG_FUNCTION_ARGS); extern Datum array_smaller(PG_FUNCTION_ARGS); extern Datum generate_subscripts(PG_FUNCTION_ARGS); |