Add trim_array() function.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 3 Mar 2021 21:39:57 +0000 (16:39 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 3 Mar 2021 21:39:57 +0000 (16:39 -0500)
commit0a687c8f103d217ff1ca8c34a644b380d89bb0ad
tree6406e23e84feca1351f879b7ddaaa9edafb4cf6a
parent3769e11a31831fc2f3bd4c4a24b4f45c352fb8fb
Add trim_array() function.

This has been in the SQL spec since 2008.  It's a pretty thin
wrapper around the array slice functionality, but the spec
says we should have it, so here it is.

Vik Fearing, reviewed by Dian Fay

Discussion: https://postgr.es/m/fc92ce17-9655-8ff1-c62a-4dc4c8ccd815@postgresfriends.org
doc/src/sgml/func.sgml
src/backend/catalog/sql_features.txt
src/backend/utils/adt/arrayfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/test/regress/expected/arrays.out
src/test/regress/sql/arrays.sql