Ray Bannon <bannonr@xxxxxxxxxxx> 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
Ray Bannon <bannonr@xxxxxxxxxxx> 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