aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Rowley <drowley@postgresql.org>2024-06-05 21:31:28 +1200
committerDavid Rowley <drowley@postgresql.org>2024-06-05 21:31:28 +1200
commit7b71e5bbccd6c86bc12ba0124e7282cfb3aa3226 (patch)
tree577463764a922eb51513445d8ed83b6cee99955f /src
parentb631d014987b9411ed0eeb7dcba9e0a8599bc3cf (diff)
downloadpostgresql-7b71e5bbccd6c86bc12ba0124e7282cfb3aa3226.tar.gz
postgresql-7b71e5bbccd6c86bc12ba0124e7282cfb3aa3226.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/optimizer/plan/subselect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/optimizer/plan/subselect.c b/src/backend/optimizer/plan/subselect.c
index e35ebea8b43..6d003cc8e5c 100644
--- a/src/backend/optimizer/plan/subselect.c
+++ b/src/backend/optimizer/plan/subselect.c
@@ -1271,15 +1271,15 @@ convert_ANY_sublink_to_join(PlannerInfo *root, SubLink *sublink,
Assert(sublink->subLinkType == ANY_SUBLINK);
/*
- * If the sub-select refers to any Vars of the parent query, we so let's
- * considering it as LATERAL. (Vars of higher levels don't matter here.)
+ * If the sub-select contains any Vars of the parent query, we treat it as
+ * LATERAL. (Vars from higher levels don't matter here.)
*/
sub_ref_outer_relids = pull_varnos_of_level(NULL, (Node *) subselect, 1);
use_lateral = !bms_is_empty(sub_ref_outer_relids);
/*
- * Check that sub-select refers nothing outside of available_rels of the
- * parent query.
+ * Can't convert if the sub-select contains parent-level Vars of relations
+ * not in available_rels.
*/
if (!bms_is_subset(sub_ref_outer_relids, available_rels))
return NULL;