Rename function for consistency
authorAlvaro Herrera <[email protected]>
Thu, 15 Jun 2017 15:44:33 +0000 (11:44 -0400)
committerAlvaro Herrera <[email protected]>
Thu, 15 Jun 2017 15:44:33 +0000 (11:44 -0400)
Avoid using prefix "staext" when everything else uses "statext".

Author: Kyotaro HORIGUCHI
Discussion: https://postgr.es/m/20170615.140041.165731947[email protected]

src/backend/statistics/dependencies.c
src/include/statistics/statistics.h

index 793b2da766e3df6403a82ade3c9949bd11614b37..ba3b1d00bb1f165dcd2e6093171076753af79cdc 100644 (file)
@@ -633,11 +633,11 @@ dependency_implies_attribute(MVDependency *dependency, AttrNumber attnum)
 }
 
 /*
- * staext_dependencies_load
+ * statext_dependencies_load
  *     Load the functional dependencies for the indicated pg_statistic_ext tuple
  */
 MVDependencies *
-staext_dependencies_load(Oid mvoid)
+statext_dependencies_load(Oid mvoid)
 {
    bool        isnull;
    Datum       deps;
@@ -987,7 +987,7 @@ dependencies_clauselist_selectivity(PlannerInfo *root,
    }
 
    /* load the dependency items stored in the statistics object */
-   dependencies = staext_dependencies_load(stat->statOid);
+   dependencies = statext_dependencies_load(stat->statOid);
 
    /*
     * Apply the dependencies recursively, starting with the widest/strongest
index a3f0d9019540862aa370422ba1cdb5786f5bb781..58e1a624b56ac5bd071d915accfd12709a00803e 100644 (file)
@@ -78,7 +78,7 @@ typedef struct MVDependencies
 #define SizeOfDependencies (offsetof(MVDependencies, ndeps) + sizeof(uint32))
 
 extern MVNDistinct *statext_ndistinct_load(Oid mvoid);
-extern MVDependencies *staext_dependencies_load(Oid mvoid);
+extern MVDependencies *statext_dependencies_load(Oid mvoid);
 
 extern void BuildRelationExtStatistics(Relation onerel, double totalrows,
                           int numrows, HeapTuple *rows,