Re: MULTISET and additional functions for ARRAY

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Re: MULTISET and additional functions for ARRAY
Дата
Msg-id AANLkTinnNLphOXPxOJYGU93ThyCHOu4iZHqx7Pycn3sp@mail.gmail.com
обсуждение исходный текст
Ответ на Re: MULTISET and additional functions for ARRAY  (Darren Duncan <darren@darrenduncan.net>)
Список pgsql-hackers
On Fri, Nov 12, 2010 at 06:06, Darren Duncan <darren@darrenduncan.net> wrote:
> This is one place that SQL made things more complicated than they needed to
> be.  Multisets have generally the same structure *and* operators (union,
> etc) as tables, but they use different syntax for each.  A better design
> would be to make tables and multisets interchangeable.  Its an unnecessary
> distinction.

We can use unnest() to convert MULTISET into TABLE, and collect() agg
function from TABLE to MULTISET. I don't think they need to have the
same on-disk structure; they can share operators and constructor syntax
even now.

--
Itagaki Takahiro


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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Delimited identifier brhavior
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: duplicate connection failure messages