diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-07-11 13:59:35 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-07-11 13:59:35 -0400 |
commit | 84a42560c82aeb9f3690d93a0d03cf544f53b89b (patch) | |
tree | 77ea56d8deb643a1f7b9955e8226069c342942c4 /src/include/utils/array.h | |
parent | f9951252dbd86391ab3a9bcba99f4e9f13e311a6 (diff) |
Add array_remove() and array_replace() functions.
These functions support removing or replacing array element value(s)
matching a given search value. Although intended mainly to support a
future array-foreign-key feature, they seem useful in their own right.
Marco Nenciarini and Gabriele Bartolini, reviewed by Alex Hunsaker
Diffstat (limited to 'src/include/utils/array.h')
-rw-r--r-- | src/include/utils/array.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/utils/array.h b/src/include/utils/array.h index 1da20fefdab..7f6aaa8bbb5 100644 --- a/src/include/utils/array.h +++ b/src/include/utils/array.h @@ -211,6 +211,8 @@ extern Datum generate_subscripts_nodir(PG_FUNCTION_ARGS); extern Datum array_fill(PG_FUNCTION_ARGS); extern Datum array_fill_with_lower_bounds(PG_FUNCTION_ARGS); extern Datum array_unnest(PG_FUNCTION_ARGS); +extern Datum array_remove(PG_FUNCTION_ARGS); +extern Datum array_replace(PG_FUNCTION_ARGS); extern Datum array_ref(ArrayType *array, int nSubscripts, int *indx, int arraytyplen, int elmlen, bool elmbyval, char elmalign, |