Ordering of arrays

Поиск
Список
Период
Сортировка
От Mike Martin
Тема Ordering of arrays
Дата
Msg-id CAOwYNKZ-FzDtNe_UTckhbBnq6nCk4UTqHRUafmf5NUN9wMmCQg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Ordering of arrays  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-sql
A question about arrays.
Is iit possible to reverse an array array?
for example
regexp_split_to_array(/srv/progs/programs/Aliens/The_Aliens_1_ens_envsc2_envsc2.mp4,'('/|\.)'), which splits on either / or . to extract fileparts

It would be useful to be able to have the array returned reversed, so rather than having to use cardinality(array)-1 I have a reversed array and say arr[1]
Also  it seems impossible to get a reverse slice (returns null array)

thanks

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

Предыдущее
От: Rick Vincent
Дата:
Сообщение: RE: PLJAVA build failure on postgres docker image
Следующее
От: Mike Martin
Дата:
Сообщение: Ordering of arrays