From: Teodor Sigaev Date: Fri, 15 Jun 2018 12:35:55 +0000 (+0300) Subject: add assert X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=281fcbdfbbf6976e76d69169e2673df3436c640c;p=online_analyze.git add assert --- diff --git a/online_analyze.c b/online_analyze.c index 8af073b..3fe4da5 100644 --- a/online_analyze.c +++ b/online_analyze.c @@ -933,8 +933,11 @@ onlineAnalyzeHookerUtility( ((VacuumRelation*)lfirst(l))->relation : #endif (RangeVar*)lfirst(l); - Oid tblOid = RangeVarGetRelid(tblname, NoLock, true); + Oid tblOid; + Assert(IsA(tblname, RangeVar)); + + tblOid = RangeVarGetRelid(tblname, NoLock, true); makeAnalyze(tblOid, op, -1); } }