Richard Guo <guofenglinux(at)gmail(dot)com> writes:
> Agreed. Do you think it would be helpful to add some assertions to
> verify the plan type?
I thought about that but didn't experiment with it. I wonder whether
it'd just make the code more fragile. Still, it might be useful to
verify that things are happening as we expect.
regards, tom lane