aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/array.h
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2015-03-18 16:01:34 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2015-03-18 16:01:34 -0300
commit13dbc7a824b3f905904cab51840d37f31a07a9ef (patch)
tree103e2af5c6d16f733fcdab238fd7de276b7beb6b /src/include/utils/array.h
parentf9dead5624c63b009fc04229c1e5f660436b747b (diff)
downloadpostgresql-13dbc7a824b3f905904cab51840d37f31a07a9ef.tar.gz
postgresql-13dbc7a824b3f905904cab51840d37f31a07a9ef.zip
array_offset() and array_offsets()
These functions return the offset position or positions of a value in an array. Author: Pavel Stěhule Reviewed by: Jim Nasby
Diffstat (limited to 'src/include/utils/array.h')
-rw-r--r--src/include/utils/array.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/utils/array.h b/src/include/utils/array.h
index 649688ca0a5..b78b42abddd 100644
--- a/src/include/utils/array.h
+++ b/src/include/utils/array.h
@@ -323,7 +323,7 @@ extern ArrayBuildStateAny *accumArrayResultAny(ArrayBuildStateAny *astate,
extern Datum makeArrayResultAny(ArrayBuildStateAny *astate,
MemoryContext rcontext, bool release);
-extern ArrayIterator array_create_iterator(ArrayType *arr, int slice_ndim);
+extern ArrayIterator array_create_iterator(ArrayType *arr, int slice_ndim, ArrayMetaState *mstate);
extern bool array_iterate(ArrayIterator iterator, Datum *value, bool *isnull);
extern void array_free_iterator(ArrayIterator iterator);
@@ -358,6 +358,10 @@ extern Datum array_agg_finalfn(PG_FUNCTION_ARGS);
extern Datum array_agg_array_transfn(PG_FUNCTION_ARGS);
extern Datum array_agg_array_finalfn(PG_FUNCTION_ARGS);
+extern Datum array_offset(PG_FUNCTION_ARGS);
+extern Datum array_offset_start(PG_FUNCTION_ARGS);
+extern Datum array_offsets(PG_FUNCTION_ARGS);
+
/*
* prototypes for functions defined in array_typanalyze.c
*/