From 837e66bd8a47b18ef7c38210598357de001e40fe Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Mon, 17 Sep 2012 18:19:41 +0400 Subject: [PATCH] check relation type --- online_analyze.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/online_analyze.c b/online_analyze.c index a7f11e3..8273673 100644 --- a/online_analyze.c +++ b/online_analyze.c @@ -310,6 +310,9 @@ makeAnalyze(Oid relOid, CmdType operation, uint32 naffected) if (relOid == InvalidOid) return; + if (get_rel_relkind(relOid) != RELKIND_RELATION) + return; + tabentry = pgstat_fetch_stat_tabentry(relOid); #if PG_VERSION_NUM >= 90000 -- 2.46.1