Fix typos in comments about extended statistics
authorTomas Vondra <tomas.vondra@postgresql.org>
Fri, 7 May 2021 11:57:29 +0000 (13:57 +0200)
committerTomas Vondra <tomas.vondra@postgresql.org>
Fri, 7 May 2021 12:40:36 +0000 (14:40 +0200)
Reported-by: Justin Pryzby
Discussion: https://postgr.es/m/20210505210947.GA27406%40telsasoft.com

src/backend/parser/parse_utilcmd.c
src/backend/statistics/extended_stats.c

index 6fae9a96872020afcdece5cf83c27f4b6974600b..48cce4567b438f34e5a79ec591bf1e9f87e91740 100644 (file)
@@ -1945,7 +1945,7 @@ generateClonedExtStatsStmt(RangeVar *heapRel, Oid heapRelid,
     * simply append them after simple column references.
     *
     * XXX Some places during build/estimation treat expressions as if they
-    * are before atttibutes, but for the CREATE command that's entirely
+    * are before attributes, but for the CREATE command that's entirely
     * irrelevant.
     */
    datum = SysCacheGetAttr(STATEXTOID, ht_stats,
index 7e11cb9d5f5c094a1100d5cad764bf28bae75156..5e53783ea6636868498d8d1553af714414d20cce 100644 (file)
@@ -1796,7 +1796,7 @@ statext_mcv_clauselist_selectivity(PlannerInfo *root, List *clauses, int varReli
                continue;
 
            /*
-            * Now we know the clause is compatible (we have either atttnums
+            * Now we know the clause is compatible (we have either attnums
             * or expressions extracted from it), and was not estimated yet.
             */