From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add trim_array() function. |
Date: | 2021-03-03 21:40:20 |
Message-ID: | E1lHZEC-0001Tm-V8@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0a687c8f103d217ff1ca8c34a644b380d89bb0ad
Modified Files
--------------
doc/src/sgml/func.sgml | 18 +++++++++++++++
src/backend/catalog/sql_features.txt | 2 +-
src/backend/utils/adt/arrayfuncs.c | 43 ++++++++++++++++++++++++++++++++++++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.dat | 3 +++
src/test/regress/expected/arrays.out | 21 ++++++++++++++++++
src/test/regress/sql/arrays.sql | 13 +++++++++++
7 files changed, 100 insertions(+), 2 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2021-03-03 21:58:09 | Re: pgsql: pg_upgrade: Check version of target cluster binaries |
Previous Message | Tom Lane | 2021-03-03 20:28:52 | Re: pgsql: pg_upgrade: Check version of target cluster binaries |