Re: possible bug in SELECT with UNION - Mailing list pgsql-bugs

From Dario Basso Cardoso
Subject Re: possible bug in SELECT with UNION
Date
Msg-id 44649E5C.2010902@itelefonica.com.br
Whole thread Raw
In response to Re: possible bug in SELECT with UNION  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Thank you

With UNION ALL the SQL work correct for my case...

Dario.

Tom Lane escreveu:

>Dario Basso Cardoso <cardosodario@itelefonica.com.br> writes:
>
>
>>I receive two (2) rows if i union with other table i receive one (1) row!!!
>>
>>
>
>You do know that UNION is defined to eliminate duplicate output rows?
>(UNION ALL doesn't eliminate duplicates, and might be what you want.)
>
>If that's not what you're seeing then you need to provide more info.
>
>            regards, tom lane
>
>---------------------------(end of broadcast)---------------------------
>TIP 1: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly
>
>
>
>

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #2435: pg_dump/pg_restore with tar format misses indices and constraints
Next
From: Douglas Toltzman
Date:
Subject: Re: backup database by pg_dump