g l <orangegrove(at)live(dot)com> writes:
> In join_is_legal(), there are 2 decision-making statements based on match_sjinfo. I wonder wether their conditions can ever test possitive.
The code coverage report says yes.
https://coverage.postgresql.org/src/backend/optimizer/path/joinrels.c.gcov.html#350
regards, tom lane