Re: general purpose array_sort
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Junwang Zhao <zhjwpku@gmail.com>
Cc: jian he <jian.universality@gmail.com>,
Amit Langote <amitlangote09@gmail.com>,
"David G. Johnston" <david.g.johnston@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
"andreas@proxel.se" <andreas@proxel.se>,
Robert Haas <robertmhaas@gmail.com>
Date: 2024-10-13T20:10:39Z
Lists: pgsql-hackers
Junwang Zhao <zhjwpku@gmail.com> writes: > It seems there is not much meaning to sort composite type, > so are you proposing we should error on that? It's hardly "general purpose" if it randomly refuses to sort certain types. I would say it should be able to sort anything that ORDER BY will handle --- and that certainly includes the cases shown here. regards, tom lane
Commits
-
Introduce a SQL-callable function array_sort(anyarray).
- 6c12ae09f5a5 18.0 landed
-
Fix ARRAY_SUBLINK and ARRAY[] for int2vector and oidvector input.
- 4618045bee4a 18.0 cited
-
Re-implement the ereport() macro using __VA_ARGS__.
- e3a87b4991cc 13.0 cited