Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit315a73d

Browse files
committed
Minor bugfix and make fetch_statentries_for_relation to be accesible by extensions.
1 parent0bbcb3a commit315a73d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎src/backend/statistics/extended_stats.c

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

7777

78-
staticList*fetch_statentries_for_relation(Relationpg_statext,Oidrelid);
7978
staticVacAttrStats**lookup_var_attr_stats(Relationrel,Bitmapset*attrs,List*exprs,
8079
intnvacatts,VacAttrStats**vacatts);
8180
staticvoidstatext_store(OidstatOid,boolinh,
@@ -420,7 +419,7 @@ statext_is_kind_built(HeapTuple htup, char type)
420419
/*
421420
* Return a list (of StatExtEntry) of statistics objects for the given relation.
422421
*/
423-
staticList*
422+
List*
424423
fetch_statentries_for_relation(Relationpg_statext,Oidrelid)
425424
{
426425
SysScanDescscan;

‎src/backend/utils/cache/typcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ lookup_type_cache(Oid type_id, int flags)
468468

469469
tp=SearchSysCache1(TYPEOID,ObjectIdGetDatum(type_id));
470470
if (!HeapTupleIsValid(tp))
471-
ereport(PANIC,
471+
ereport(ERROR,
472472
(errcode(ERRCODE_UNDEFINED_OBJECT),
473473
errmsg("type with OID %u does not exist",type_id)));
474474
typtup= (Form_pg_type)GETSTRUCT(tp);

‎src/include/statistics/statistics.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ extern MVNDistinct *statext_ndistinct_load(Oid mvoid, bool inh);
101101
externMVDependencies*statext_dependencies_load(Oidmvoid,boolinh);
102102
externMCVList*statext_mcv_load(Oidmvoid,boolinh);
103103

104+
externList*fetch_statentries_for_relation(Relationpg_statext,Oidrelid);
104105
externvoidBuildRelationExtStatistics(Relationonerel,boolinh,doubletotalrows,
105106
intnumrows,HeapTuple*rows,
106107
intnatts,VacAttrStats**vacattrstats);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp