Re: UNION and array types

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: UNION and array types
Дата
Msg-id 20021122215025.GA21740@wolff.to
обсуждение исходный текст
Ответ на UNION and array types  (Eric B.Ridge <ebr@tcdi.com>)
Ответы Re: UNION and array types  (Eric B.Ridge <ebr@tcdi.com>)
Список pgsql-general
On Fri, Nov 22, 2002 at 16:29:07 -0500,
  "Eric B. Ridge" <ebr@tcdi.com> wrote:
> UNIONs don't appear to work when you are trying to union 2 tables that
> include array types.
> Example:
> create table foo (bar int8[]);
> insert into foo (bar) values ('{1,2,3}');
> select * from foo union select * from foo;
> ERROR:  Unable to identify an ordering operator '<' for type 'bigint[]'
>         Use an explicit ordering operator or modify the query
>
> Is it possible to make this work?  Please tell me yes.  :)

I think you can get by with union all if you don't care if duplicates stay.

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

Предыдущее
От: Eric B.Ridge
Дата:
Сообщение: UNION and array types
Следующее
От: Frank Bax
Дата:
Сообщение: Re: index vs seqscan question