diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-04-28 14:48:58 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-04-28 14:48:58 +0000 |
commit | 1fcb977a13d70f8746ec86488fd9afc0569e7784 (patch) | |
tree | bcb05835226f8663ad20ed55c8f3fb712ab0ff5b /src/include/utils/array.h | |
parent | a1d479f518394a68f47e3dd64ac5c4626da6c534 (diff) | |
download | postgresql-1fcb977a13d70f8746ec86488fd9afc0569e7784.tar.gz postgresql-1fcb977a13d70f8746ec86488fd9afc0569e7784.zip |
Add generate_subscripts, a series-generation function which generates an
array's subscripts.
Pavel Stehule, some editorialization by me.
Diffstat (limited to 'src/include/utils/array.h')
-rw-r--r-- | src/include/utils/array.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/array.h b/src/include/utils/array.h index 9f253879f94..f8595d908b1 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.66 2008/01/01 19:45:59 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/array.h,v 1.67 2008/04/28 14:48:57 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -200,6 +200,8 @@ extern Datum array_lower(PG_FUNCTION_ARGS); extern Datum array_upper(PG_FUNCTION_ARGS); extern Datum array_larger(PG_FUNCTION_ARGS); extern Datum array_smaller(PG_FUNCTION_ARGS); +extern Datum generate_subscripts(PG_FUNCTION_ARGS); +extern Datum generate_subscripts_nodir(PG_FUNCTION_ARGS); extern Datum array_ref(ArrayType *array, int nSubscripts, int *indx, int arraytyplen, int elmlen, bool elmbyval, char elmalign, |