projects
/
online_analyze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2f4afd9
)
check relation type
author
Teodor Sigaev
<teodor@sigaev.ru>
Mon, 17 Sep 2012 14:19:41 +0000
(18:19 +0400)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Mon, 17 Sep 2012 14:19:41 +0000
(18:19 +0400)
online_analyze.c
patch
|
blob
|
history
diff --git
a/online_analyze.c
b/online_analyze.c
index
a7f11e3
..
8273673
100644
(file)
--- a/
online_analyze.c
+++ b/
online_analyze.c
@@
-310,6
+310,9
@@
makeAnalyze(Oid relOid, CmdType operation, uint32 naffected)
if (relOid == InvalidOid)
return;
if (relOid == InvalidOid)
return;
+ if (get_rel_relkind(relOid) != RELKIND_RELATION)
+ return;
+
tabentry = pgstat_fetch_stat_tabentry(relOid);
#if PG_VERSION_NUM >= 90000
tabentry = pgstat_fetch_stat_tabentry(relOid);
#if PG_VERSION_NUM >= 90000