diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2025-04-01 18:03:55 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2025-04-01 18:03:55 -0400 |
commit | 6c12ae09f5a5d6c153eaea7901542591dc28fb9e (patch) | |
tree | 49e351e00c0f30aa00bac57a2dbbaedd9329ebfa /src/tools | |
parent | 6da2ba1d8a031984eb016fed6741bb2ac945f19d (diff) | |
download | postgresql-6c12ae09f5a5d6c153eaea7901542591dc28fb9e.tar.gz postgresql-6c12ae09f5a5d6c153eaea7901542591dc28fb9e.zip |
Introduce a SQL-callable function array_sort(anyarray).
Create a function that will sort the elements of an array
according to the element type's sort order. If the array
has more than one dimension, the sub-arrays of the first
dimension are sorted per normal array-comparison rules,
leaving their contents alone.
In support of this, add pg_type.typarray to the set of fields
cached by the typcache.
Author: Junwang Zhao <zhjwpku@gmail.com>
Co-authored-by: Jian He <jian.universality@gmail.com>
Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>
Discussion: https://postgr.es/m/CAEG8a3J41a4dpw_-F94fF-JPRXYxw-GfsgoGotKcjs9LVfEEvw@mail.gmail.com
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/pgindent/typedefs.list | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/pgindent/typedefs.list b/src/tools/pgindent/typedefs.list index b66cecd8799..449bafc123c 100644 --- a/src/tools/pgindent/typedefs.list +++ b/src/tools/pgindent/typedefs.list @@ -154,6 +154,7 @@ ArrayIOData ArrayIterator ArrayMapState ArrayMetaState +ArraySortCachedInfo ArraySubWorkspace ArrayToken ArrayType |