"Sergey E. Koposov" <math(at)sai(dot)msu(dot)ru> writes:
> I've found a bug with 8.2beta1:
Can you put together a self-contained test case for this? The planner
is evidently generating an incorrect plan from that messy view, but
trying to reverse-engineer the complete scenario from what you've told
us looks painful. (No, I don't think the log setting is related.)
regards, tom lane