Ray Bannon <[EMAIL PROTECTED]> 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

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

Reply via email to