Re: UNION and array types

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: "Eric B(dot) Ridge" <ebr(at)tcdi(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: UNION and array types
Date: 2002-11-22 21:50:25
Message-ID: 20021122215025.GA21740@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

On Fri, Nov 22, 2002 at 16:29:07 -0500,
"Eric B. Ridge" <ebr(at)tcdi(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Frank Bax 2002-11-22 21:54:35 Re: index vs seqscan question
Previous Message Eric B.Ridge 2002-11-22 21:29:07 UNION and array types

Browse pgsql-novice by date

  From Date Subject
Next Message Joshua Daniel Franklin 2002-11-22 22:43:12 Getting started links
Previous Message Eric B.Ridge 2002-11-22 21:29:07 UNION and array types