Skip to content

Commit 7b71e5b

Browse files
committed
Fix some grammatical errors in some comments
Introduced by 9f13376. Author: James Coleman <jtc331@gmail.com> Discussion: https://postgr.es/m/CAAaqYe9ZQ_1+QiF_Nv7b37opicBu+35ZQK1CetQ54r5UdrF1eg@mail.gmail.com
1 parent b631d01 commit 7b71e5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/optimizer/plan/subselect.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,15 +1271,15 @@ convert_ANY_sublink_to_join(PlannerInfo *root, SubLink *sublink,
12711271
Assert(sublink->subLinkType == ANY_SUBLINK);
12721272

12731273
/*
1274-
* If the sub-select refers to any Vars of the parent query, we so let's
1275-
* considering it as LATERAL. (Vars of higher levels don't matter here.)
1274+
* If the sub-select contains any Vars of the parent query, we treat it as
1275+
* LATERAL. (Vars from higher levels don't matter here.)
12761276
*/
12771277
sub_ref_outer_relids = pull_varnos_of_level(NULL, (Node *) subselect, 1);
12781278
use_lateral = !bms_is_empty(sub_ref_outer_relids);
12791279

12801280
/*
1281-
* Check that sub-select refers nothing outside of available_rels of the
1282-
* parent query.
1281+
* Can't convert if the sub-select contains parent-level Vars of relations
1282+
* not in available_rels.
12831283
*/
12841284
if (!bms_is_subset(sub_ref_outer_relids, available_rels))
12851285
return NULL;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy