Re: MULTISET and additional functions for ARRAY

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Re: MULTISET and additional functions for ARRAY
Дата
Msg-id AANLkTi=o8-SqrDGFuYqwdj3vmDEyoDe5N+J-80rwT0ow@mail.gmail.com
обсуждение исходный текст
Ответ на Re: MULTISET and additional functions for ARRAY  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: MULTISET and additional functions for ARRAY  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: MULTISET and additional functions for ARRAY  (Andres Freund <andres@anarazel.de>)
Re: MULTISET and additional functions for ARRAY  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Nov 15, 2010 at 14:37, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> Maybe can be useful to implement a searching on sorted array.
> You can hold a flag if multiset is sorted or not.

Are you suggesting to add an IS_SORTED bit to for each ArrayType value?
It might be possible, but I'm not sure how much it is useful.

Another issue for sorting is that we have 4 kinds of sorting: ASC/DESC
and NULLS FIRST/LAST. I always used the default sort order (ASC NULLS LAST)
in the patch, but we might need to support all of them when we export the
functionality. Then, we would need 2 bits for IS_SORTED flags.

-- 
Itagaki Takahiro


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: some notes about implementation of SQL/PSM in PostgreSQL
Следующее
От: Alexander Korotkov
Дата:
Сообщение: Re: Fix for seg picksplit function