Michael Bommarito <michael(at)bommaritollc(dot)com> writes:
> If you can provide a patch that performs input validation in
> get_tle_by_resno and logs the condition, I can compile and test with it.
Wouldn't prove anything one way or another. Somehow, a corrupt query tree
is being fed to the planner; what we need to understand is what conditions
cause that to happen. I doubt that getting more details at the point
where the code trips over the corruption will teach us that.
regards, tom lane