Re: are the 2 if-statements in join_is_legal() removable? - Mailing list pgsql-general

From Tom Lane
Subject Re: are the 2 if-statements in join_is_legal() removable?
Date
Msg-id 667603.1746892044@sss.pgh.pa.us
Whole thread Raw
In response to are the 2 if-statements in join_is_legal() removable?  (g l <orangegrove@live.com>)
Responses 回复: are the 2 if-statements in join_is_legal() removable?
List pgsql-general
g l <orangegrove@live.com> writes:
> In join_is_legal(), there are 2 decision-making statements based on match_sjinfo. I    wonder wether their conditions
canever test possitive. 

The code coverage report says yes.

https://coverage.postgresql.org/src/backend/optimizer/path/joinrels.c.gcov.html#350

            regards, tom lane



pgsql-general by date:

Previous
From: g l
Date:
Subject: are the 2 if-statements in join_is_legal() removable?
Next
From: g l
Date:
Subject: 回复: are the 2 if-statements in join_is_legal() removable?