Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3ab7912

Browse files
committed
Rename function for consistency
Avoid using prefix "staext" when everything else uses "statext". Author: Kyotaro HORIGUCHI Discussion: https://postgr.es/m/20170615.140041.165731947.horiguchi.kyotaro@lab.ntt.co.jp
1 parent 915379c commit 3ab7912

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/backend/statistics/dependencies.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,11 +633,11 @@ dependency_implies_attribute(MVDependency *dependency, AttrNumber attnum)
633633
}
634634

635635
/*
636-
* staext_dependencies_load
636+
* statext_dependencies_load
637637
* Load the functional dependencies for the indicated pg_statistic_ext tuple
638638
*/
639639
MVDependencies *
640-
staext_dependencies_load(Oid mvoid)
640+
statext_dependencies_load(Oid mvoid)
641641
{
642642
bool isnull;
643643
Datum deps;
@@ -987,7 +987,7 @@ dependencies_clauselist_selectivity(PlannerInfo *root,
987987
}
988988

989989
/* load the dependency items stored in the statistics object */
990-
dependencies = staext_dependencies_load(stat->statOid);
990+
dependencies = statext_dependencies_load(stat->statOid);
991991

992992
/*
993993
* Apply the dependencies recursively, starting with the widest/strongest

src/include/statistics/statistics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ typedef struct MVDependencies
7878
#define SizeOfDependencies (offsetof(MVDependencies, ndeps) + sizeof(uint32))
7979

8080
extern MVNDistinct *statext_ndistinct_load(Oid mvoid);
81-
extern MVDependencies *staext_dependencies_load(Oid mvoid);
81+
extern MVDependencies *statext_dependencies_load(Oid mvoid);
8282

8383
extern void BuildRelationExtStatistics(Relation onerel, double totalrows,
8484
int numrows, HeapTuple *rows,

0 commit comments

Comments
 (0)