Re: UNION discards indentical rows in postgres 7.3.3 - Mailing list pgsql-bugs

From Rod Taylor
Subject Re: UNION discards indentical rows in postgres 7.3.3
Date
Msg-id 1060290918.15749.21.camel@jester
Whole thread Raw
In response to UNION discards indentical rows in postgres 7.3.3  (Silvio Scarpati <silvio.scarpati@virgilio.it>)
List pgsql-bugs
> Wrong ! The query should return 4 rows. In other words i don't know
> why postgres performs the following query:

I think the syntax you're looking for is UNION ALL.

select a,b from t1 union all (select distinct a,b from t2);

pgsql-bugs by date:

Previous
From: Silvio Scarpati
Date:
Subject: UNION discards indentical rows in postgres 7.3.3
Next
From: Stephan Szabo
Date:
Subject: Re: UNION discards indentical rows in postgres 7.3.3