]> granicus.if.org Git - postgresql/commit
Add array_remove() and array_replace() functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 11 Jul 2012 17:59:35 +0000 (13:59 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 11 Jul 2012 17:59:35 +0000 (13:59 -0400)
commit84a42560c82aeb9f3690d93a0d03cf544f53b89b
tree77ea56d8deb643a1f7b9955e8226069c342942c4
parentf9951252dbd86391ab3a9bcba99f4e9f13e311a6
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
doc/src/sgml/func.sgml
src/backend/utils/adt/arrayfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/utils/array.h
src/test/regress/expected/arrays.out
src/test/regress/sql/arrays.sql