postgresql/src/backend
Tom Lane 6c12ae09f5 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
2025-04-01 18:03:55 -04:00
..
access Remove a stray "pgrminclude" annotation 2025-04-01 15:28:22 +02:00
archive Update copyright for 2025 2025-01-01 11:21:55 -05:00
backup pgstat: Allow checksum errors to be reported in critical sections 2025-03-30 16:12:04 -04:00
bootstrap Remove unnecessary (char *) casts [mem] 2025-02-12 08:50:13 +01:00
catalog aio: Add pg_aios view 2025-04-01 13:30:33 -04:00
commands Enable IO concurrency on all systems 2025-03-30 19:16:47 -04:00
executor Fix MERGE with DO NOTHING actions into a partitioned table. 2025-03-29 09:58:40 +00:00
foreign Update copyright for 2025 2025-01-01 11:21:55 -05:00
jit Use PG_MODULE_MAGIC_EXT in our installable shared libraries. 2025-03-26 11:11:02 -04:00
lib Update copyright for 2025 2025-01-01 11:21:55 -05:00
libpq Modularize log_connections output 2025-03-12 11:35:21 -04:00
main Use thread-safe strftime_l() instead of strftime(). 2025-03-28 07:13:43 +01:00
nodes Remove the query_id_squash_values GUC 2025-03-27 13:33:37 +01:00
optimizer Make group_similar_or_args() reorder clause list as little as possible 2025-03-28 23:37:49 +02:00
parser Add support for not-null constraints on virtual generated columns 2025-03-28 13:53:37 +01:00
partitioning Fix bug in cbc127917 to handle nested Append correctly 2025-02-25 09:24:42 +09:00
po Update copyright for 2025 2025-01-01 11:21:55 -05:00
port Update copyright for 2025 2025-01-01 11:21:55 -05:00
postmaster aio, bufmgr: Comment fixes/improvements 2025-03-29 14:45:42 -04:00
regex Support PG_UNICODE_FAST locale in the builtin collation provider. 2025-01-17 15:56:30 -08:00
replication Use PRI?64 instead of "ll?" in format strings (continued). 2025-03-29 10:43:57 +01:00
rewrite Fix incorrect handling of subquery pullup 2025-03-13 16:36:03 +09:00
snowball Use PG_MODULE_MAGIC_EXT in our installable shared libraries. 2025-03-26 11:11:02 -04:00
statistics Stats: use schemaname/relname instead of regclass. 2025-03-25 11:16:06 -07:00
storage aio: Minor comment improvements 2025-04-01 16:06:48 -04:00
tcop Fix guc_malloc calls for consistency and OOM checks 2025-03-27 22:57:34 +01:00
tsearch Clear errno before calling strtol() in spell.c. 2025-03-08 11:24:25 -05:00
utils Introduce a SQL-callable function array_sort(anyarray). 2025-04-01 18:03:55 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile aio: Add liburing dependency 2025-03-26 19:45:32 -04:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls.mk Return yyparse() result not via global variable 2025-01-24 06:55:39 +01:00