diff options
| author | Tom Lane | 2021-03-03 21:39:57 +0000 |
|---|---|---|
| committer | Tom Lane | 2021-03-03 21:39:57 +0000 |
| commit | 0a687c8f103d217ff1ca8c34a644b380d89bb0ad (patch) | |
| tree | 6406e23e84feca1351f879b7ddaaa9edafb4cf6a /src/include | |
| parent | 3769e11a31831fc2f3bd4c4a24b4f45c352fb8fb (diff) | |
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
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/catalog/catversion.h | 2 | ||||
| -rw-r--r-- | src/include/catalog/pg_proc.dat | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h index b19975c5c89..28b8a32129c 100644 --- a/src/include/catalog/catversion.h +++ b/src/include/catalog/catversion.h @@ -53,6 +53,6 @@ */ /* yyyymmddN */ -#define CATALOG_VERSION_NO 202103031 +#define CATALOG_VERSION_NO 202103032 #endif diff --git a/src/include/catalog/pg_proc.dat b/src/include/catalog/pg_proc.dat index 3d3974f4676..59d2b71ca9c 100644 --- a/src/include/catalog/pg_proc.dat +++ b/src/include/catalog/pg_proc.dat @@ -1663,6 +1663,9 @@ proname => 'width_bucket', prorettype => 'int4', proargtypes => 'anycompatible anycompatiblearray', prosrc => 'width_bucket_array' }, +{ oid => '8819', descr => 'remove last N elements of array', + proname => 'trim_array', prorettype => 'anyarray', + proargtypes => 'anyarray int4', prosrc => 'trim_array' }, { oid => '3816', descr => 'array typanalyze', proname => 'array_typanalyze', provolatile => 's', prorettype => 'bool', proargtypes => 'internal', prosrc => 'array_typanalyze' }, |
