sequencing two tables - Mailing list pgsql-general

From Shachar Shemesh
Subject sequencing two tables
Date
Msg-id 41AA43B1.2060707@shemesh.biz
Whole thread Raw
Responses Re: sequencing two tables
Re: sequencing two tables
List pgsql-general
Hi list,

I need to create a list of all rows of the combination of two tables.
For reasons I can't go into, I need this list to be in a single query,
and not write a function to do it.

I thought about doing something like this:
select |COALESCE(table1.field, table2.field) as field from table1 full
outer join table2 on false

There is just one small problem. Even though logically this does what
I'm trying to do, postgres says:
"FULL JOIN is only supported with merge-joinable conditions".

I don't even understand the error message, much less whether I'm doing
anything wrong, and whether I'm missing something stupifyingly obvious here.

Help?

Postgres version is 7.4

       Shachar
|

--
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/


pgsql-general by date:

Previous
From: Christopher Browne
Date:
Subject: Re: PGSQL: The Gateway will be kept.
Next
From: "Uwe C. Schroeder"
Date:
Subject: How many views...