Craig James <craig_james(at)emolecules(dot)com> writes:
> My guess (and it's just a wild guess) is that the "left join" is
> forcing a sequence scan or something.
No, that's forcing the other join to be done in toto because it can't
reorder the left join and regular join.
regards, tom lane