Re: UNION and array types - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: UNION and array types
Date
Msg-id 20021122215025.GA21740@wolff.to
Whole thread Raw
In response to UNION and array types  (Eric B.Ridge <ebr@tcdi.com>)
Responses Re: UNION and array types  (Eric B.Ridge <ebr@tcdi.com>)
List 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 by date:

Previous
From: Eric B.Ridge
Date:
Subject: UNION and array types
Next
From: Frank Bax
Date:
Subject: Re: index vs seqscan question