mirror of
https://github.com/postgres/postgres.git
synced 2025-05-08 07:21:33 +03:00
Fix some grammatical errors in some comments
Introduced by 9f1337639. Author: James Coleman <jtc331@gmail.com> Discussion: https://postgr.es/m/CAAaqYe9ZQ_1+QiF_Nv7b37opicBu+35ZQK1CetQ54r5UdrF1eg@mail.gmail.com
This commit is contained in:
parent
b631d01498
commit
7b71e5bbcc
@ -1271,15 +1271,15 @@ convert_ANY_sublink_to_join(PlannerInfo *root, SubLink *sublink,
|
|||||||
Assert(sublink->subLinkType == ANY_SUBLINK);
|
Assert(sublink->subLinkType == ANY_SUBLINK);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the sub-select refers to any Vars of the parent query, we so let's
|
* If the sub-select contains any Vars of the parent query, we treat it as
|
||||||
* considering it as LATERAL. (Vars of higher levels don't matter here.)
|
* LATERAL. (Vars from higher levels don't matter here.)
|
||||||
*/
|
*/
|
||||||
sub_ref_outer_relids = pull_varnos_of_level(NULL, (Node *) subselect, 1);
|
sub_ref_outer_relids = pull_varnos_of_level(NULL, (Node *) subselect, 1);
|
||||||
use_lateral = !bms_is_empty(sub_ref_outer_relids);
|
use_lateral = !bms_is_empty(sub_ref_outer_relids);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check that sub-select refers nothing outside of available_rels of the
|
* Can't convert if the sub-select contains parent-level Vars of relations
|
||||||
* parent query.
|
* not in available_rels.
|
||||||
*/
|
*/
|
||||||
if (!bms_is_subset(sub_ref_outer_relids, available_rels))
|
if (!bms_is_subset(sub_ref_outer_relids, available_rels))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user