Re: general purpose array_sort

Поиск
Список
Период
Сортировка
От Aleksander Alekseev
Тема Re: general purpose array_sort
Дата
Msg-id CAJ7c6TOeFsSKUKTCnK5heE9RH39O3U0nSMX0+_m6zFJFEn3TTg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: general purpose array_sort  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: general purpose array_sort
Список pgsql-hackers
Hi,

> 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.

I wonder how useful / convenient the new function will be considering
that we already have CTEs and can do:

SELECT array_agg(x ORDER BY x) FROM unnest(ARRAY[5,1,3,2,4]) AS x;

Perhaps there are use cases I didn't consider?

-- 
Best regards,
Aleksander Alekseev



В списке pgsql-hackers по дате отправления: