Richard Guo <guofenglinux@gmail.com> writes:
> BTW, I wonder if we need the JOIN_RIGHT case here since JOIN_RIGHT
> should have been flipped around to become JOIN_LEFT.
Hmm, you're right, that's done in reduce_outer_joins which
precedes this step.
regards, tom lane