Re: general purpose array_sort

Поиск
Список
Период
Сортировка
От jian he
Тема Re: general purpose array_sort
Дата
Msg-id CACJufxEDqZraG+ZbKk6R=+0SODrkERpjhTD9yb69YTfJi=-UOg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: general purpose array_sort  (jian he <jian.universality@gmail.com>)
Ответы Re: general purpose array_sort
Список pgsql-hackers
hi.

before commit 4618045bee4a6d3efcb489c319649d8dd9aaa738 ([0])

select array_sort(array(select '1 4'::int2vector union all select '1
2'::int2vector));
        array_sort
--------------------------
 [1:2][0:1]={{1,2},{1,4}}
(1 row)

after

select array_sort(array(select '1 4'::int2vector union all select '1
2'::int2vector));
  array_sort
---------------
 {"1 2","1 4"}
(1 row)

now look closer, the second is the expected result...
I didn't dig deeper why commit 4618045bee made this patch result correct,
but I guess it would be best to include such a test case,
so I've attached a patch.


[0] https://git.postgresql.org/cgit/postgresql.git/commit/?id=4618045bee4a6d3efcb489c319649d8dd9aaa738

Вложения

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