Re: are the 2 if-statements in join_is_legal() removable?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: g l <orangegrove(at)live(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: are the 2 if-statements in join_is_legal() removable?
Date: 2025-05-10 15:47:24
Message-ID: 667603.1746892044@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message g l 2025-05-11 08:26:38 回复: are the 2 if-statements in join_is_legal() removable?
Previous Message g l 2025-05-10 02:14:28 are the 2 if-statements in join_is_legal() removable?