prerequisites of pull_up_sublinks - Mailing list pgsql-hackers

From Andy Fan
Subject prerequisites of pull_up_sublinks
Date
Msg-id CAKU4AWrmgivKLsrxQtgcyfMkgCTRh-AbLfyawQUzgQQgr_PCUQ@mail.gmail.com
Whole thread Raw
Responses Re: prerequisites of pull_up_sublinks
List pgsql-hackers
Hi,

I'm reading the pull_up_sublinks, and find the below comments.

 * However, this optimization *only*
 * works at the top level of WHERE or a JOIN/ON clause, because we cannot
 * distinguish whether the ANY ought to return FALSE or NULL in cases
 * involving NULL inputs. Also, in an outer join's ON clause we can only
 * do this if the sublink is degenerate (ie, references only the nullable
 * side of the join).

I tried to write some SQLs but still can't understand the above comments. Any
help here?

--
Best Regards

pgsql-hackers by date:

Previous
From: "tsunakawa.takay@fujitsu.com"
Date:
Subject: RE: [bug?] Missed parallel safety checks, and wrong parallel safety
Next
From: Michael Paquier
Date:
Subject: Re: Tiny update to pg_stat_statements documentation