aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/array.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2008-11-12 13:09:28 +0000
committerPeter Eisentraut <peter_e@gmx.net>2008-11-12 13:09:28 +0000
commitf98f6ee0641e87c6ecc2524f5d0a8b54924ffd14 (patch)
treea192c5bf9cfea3c4581f16f19ec7f6e8245f3c2a /src/include/utils/array.h
parent4c22564471e2724bcc62bc2c61ece796c946f16e (diff)
downloadpostgresql-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.h3
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);