Mark, > The plans are different and I suspect thats where the differences lie. > For brevity (and readability) I won't copy the plans here but I'll > provide the links. ÂSearch for 'PERF1.POWER.Q2' in the file, it's the > second query executed and you'll notice the differences under the > SubPlan:
Yeah, the difference seems to be an arbitrary choice of which table to join on first. The error is only +10 ms, but when it's being executed 3000 times ... Will delve into this when I can re-format it, and try to figure out why the planner is choosing what it is. -- --Josh Josh Berkus Aglio Database Solutions San Francisco ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org