Re: Union Query Improvement

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ray Bannon <bannonr(at)comcast(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Union Query Improvement
Date: 2007-02-14 08:03:08
Message-ID: 19336.1171440188@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ray Bannon <bannonr(at)comcast(dot)net> writes:
> Any way to write this more efficiently?

UNION -> UNION ALL, perhaps? Do you really need UNION's duplicate-row-
elimination behavior?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2007-02-14 08:07:46 Re: Timestamp/Timezone - does this make sense?
Previous Message Sujay Bhattacharya 2007-02-14 08:01:39 Thank you for your email