aboutsummaryrefslogtreecommitdiff
path: root/src/backend/optimizer/path/equivclass.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-07-01 10:00:23 +0900
committerMichael Paquier <michael@paquier.xyz>2019-07-01 10:00:23 +0900
commitc74d49d41c9e0fabeb1179dcabfb3137833ed831 (patch)
treed5406f4f6578181174e178c68ba320ac9395648a /src/backend/optimizer/path/equivclass.c
parent459c3cdb4ad8323bfe6bcae0186a3831e0c89c94 (diff)
downloadpostgresql-c74d49d41c9e0fabeb1179dcabfb3137833ed831.tar.gz
postgresql-c74d49d41c9e0fabeb1179dcabfb3137833ed831.zip
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/path/equivclass.c')
-rw-r--r--src/backend/optimizer/path/equivclass.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/backend/optimizer/path/equivclass.c b/src/backend/optimizer/path/equivclass.c
index b50e9ccdf14..688d9b07075 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 *));