aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/array.h
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-02-28 03:45:24 +0000
committerNeil Conway <neilc@samurai.com>2005-02-28 03:45:24 +0000
commit484f0464ff4aa5a5fccc1d4e3c0d3518a8f01068 (patch)
treeb939fae4ca3af9e19186f89bcaa00aecae632b05 /src/include/utils/array.h
parent517872c566217368b370fbf2a7c229529b405042 (diff)
downloadpostgresql-484f0464ff4aa5a5fccc1d4e3c0d3518a8f01068.tar.gz
postgresql-484f0464ff4aa5a5fccc1d4e3c0d3518a8f01068.zip
Implement max() and min() aggregates for array types. Patch from Koju
Iijima, reviewed by Neil Conway. Catalog version number bumped, regression tests updated.
Diffstat (limited to 'src/include/utils/array.h')
-rw-r--r--src/include/utils/array.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/array.h b/src/include/utils/array.h
index 05aa154d293..a9d2272d074 100644
--- a/src/include/utils/array.h
+++ b/src/include/utils/array.h
@@ -10,7 +10,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/utils/array.h,v 1.51 2004/12/31 22:03:45 pgsql Exp $
+ * $PostgreSQL: pgsql/src/include/utils/array.h,v 1.52 2005/02/28 03:45:23 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -129,6 +129,8 @@ extern Datum array_upper(PG_FUNCTION_ARGS);
extern Datum array_type_coerce(PG_FUNCTION_ARGS);
extern Datum array_type_length_coerce(PG_FUNCTION_ARGS);
extern Datum array_length_coerce(PG_FUNCTION_ARGS);
+extern Datum array_larger(PG_FUNCTION_ARGS);
+extern Datum array_smaller(PG_FUNCTION_ARGS);
extern Datum array_ref(ArrayType *array, int nSubscripts, int *indx,
int arraylen, int elmlen, bool elmbyval, char elmalign,