Skip to content

Commit edf9e2c

Browse files
committed
Make the fetch_statentries_for_relation routine local again.
Removing machinery on analysing duplicates we don't need this function for now. Remember, it (and its struct) have been changing, it would be a burden to copy it inside the extension on such an early stage.
1 parent 315a73d commit edf9e2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/statistics/extended_stats.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ typedef struct StatExtEntry
7575
} StatExtEntry;
7676

7777

78+
static List *fetch_statentries_for_relation(Relation pg_statext, Oid relid);
7879
static VacAttrStats **lookup_var_attr_stats(Relation rel, Bitmapset *attrs, List *exprs,
7980
int nvacatts, VacAttrStats **vacatts);
8081
static void statext_store(Oid statOid, bool inh,
@@ -419,7 +420,7 @@ statext_is_kind_built(HeapTuple htup, char type)
419420
/*
420421
* Return a list (of StatExtEntry) of statistics objects for the given relation.
421422
*/
422-
List *
423+
static List *
423424
fetch_statentries_for_relation(Relation pg_statext, Oid relid)
424425
{
425426
SysScanDesc scan;

src/include/statistics/statistics.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ extern MVNDistinct *statext_ndistinct_load(Oid mvoid, bool inh);
101101
extern MVDependencies *statext_dependencies_load(Oid mvoid, bool inh);
102102
extern MCVList *statext_mcv_load(Oid mvoid, bool inh);
103103

104-
extern List *fetch_statentries_for_relation(Relation pg_statext, Oid relid);
105104
extern void BuildRelationExtStatistics(Relation onerel, bool inh, double totalrows,
106105
int numrows, HeapTuple *rows,
107106
int natts, VacAttrStats **vacattrstats);

0 commit comments

Comments
 (0)