summaryrefslogtreecommitdiff
path: root/src/backend/optimizer
diff options
context:
space:
mode:
authorMichael Paquier2019-07-01 01:00:23 +0000
committerMichael Paquier2019-07-01 01:00:23 +0000
commitc74d49d41c9e0fabeb1179dcabfb3137833ed831 (patch)
treed5406f4f6578181174e178c68ba320ac9395648a /src/backend/optimizer
parent459c3cdb4ad8323bfe6bcae0186a3831e0c89c94 (diff)
Fix many typos and inconsistencies
Author: Alexander Lakhin Discussion: https://postgr.es/m/af27d1b3-a128-9d62-46e0-88f424397f44@gmail.com
Diffstat (limited to 'src/backend/optimizer')
-rw-r--r--src/backend/optimizer/path/equivclass.c9
-rw-r--r--src/backend/optimizer/plan/createplan.c2
-rw-r--r--src/backend/optimizer/util/clauses.c8
3 files changed, 9 insertions, 10 deletions
diff --git a/src/backend/optimizer/path/equivclass.c b/src/backend/optimizer/path/equivclass.c
index b50e9ccdf1..688d9b0707 100644
--- a/src/backend/optimizer/path/equivclass.c
+++ b/src/backend/optimizer/path/equivclass.c
@@ -929,11 +929,10 @@ generate_base_implied_equalities_no_const(PlannerInfo *root,
/*
* We scan the EC members once and track the last-seen member for each
* base relation. When we see another member of the same base relation,
- * we generate "prev_mem = cur_mem". This results in the minimum number
- * of derived clauses, but it's possible that it will fail when a
- * different ordering would succeed. XXX FIXME: use a UNION-FIND
- * algorithm similar to the way we build merged ECs. (Use a list-of-lists
- * for each rel.)
+ * we generate "prev_em = cur_em". This results in the minimum number of
+ * derived clauses, but it's possible that it will fail when a different
+ * ordering would succeed. XXX FIXME: use a UNION-FIND algorithm similar
+ * to the way we build merged ECs. (Use a list-of-lists for each rel.)
*/
prev_ems = (EquivalenceMember **)
palloc0(root->simple_rel_array_size * sizeof(EquivalenceMember *));
diff --git a/src/backend/optimizer/plan/createplan.c b/src/backend/optimizer/plan/createplan.c
index 608d5adfed..12fba56285 100644
--- a/src/backend/optimizer/plan/createplan.c
+++ b/src/backend/optimizer/plan/createplan.c
@@ -3911,7 +3911,7 @@ create_foreignscan_plan(PlannerInfo *root, ForeignPath *best_path,
}
/*
- * create_custom_plan
+ * create_customscan_plan
*
* Transform a CustomPath into a Plan.
*/
diff --git a/src/backend/optimizer/util/clauses.c b/src/backend/optimizer/util/clauses.c
index 2e84d6b3b4..d78f4e64c1 100644
--- a/src/backend/optimizer/util/clauses.c
+++ b/src/backend/optimizer/util/clauses.c
@@ -3409,10 +3409,10 @@ eval_const_expressions_mutator(Node *node,
{
/*
* This case could be folded into the generic handling used
- * for ArrayRef etc. But because the simplification logic is
- * so trivial, applying evaluate_expr() to perform it would be
- * a heavy overhead. BooleanTest is probably common enough to
- * justify keeping this bespoke implementation.
+ * for SubscriptingRef etc. But because the simplification
+ * logic is so trivial, applying evaluate_expr() to perform it
+ * would be a heavy overhead. BooleanTest is probably common
+ * enough to justify keeping this bespoke implementation.
*/
BooleanTest *btest = (BooleanTest *) node;
BooleanTest *newbtest;