Re: Why no "array_sort" function?

2020-05-08 Thread Fabien COELHO
Hello Sergei, Aggregate functions have syntax for ordering: just "select array_agg(i order by i) from " Described here: https://www.postgresql.org/docs/current/sql-expressions.html#SYNTAX-AGGREGATES Great, that's indeed enough for my usage, thanks for the tip! The questions remains, w

Re: Why no "array_sort" function?

2020-05-08 Thread Sergei Kornilov
Hello > mostly in an aggregation to show > in a compact way what items were grouped together. Aggregate functions have syntax for ordering: just "select array_agg(i order by i) from " Described here: https://www.postgresql.org/docs/current/sql-expressions.html#SYNTAX-AGGREGATES regards, Se

Why no "array_sort" function?

2020-05-08 Thread Fabien COELHO
Hello devs, although having arrays is an anathema in a relational world, pg has them, and I find it useful for some queries, mostly in an aggregation to show in a compact way what items were grouped together. There are a few functions available to deal with arrays. Among these functions, t