add assert
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 15 Jun 2018 12:35:55 +0000 (15:35 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 15 Jun 2018 12:35:55 +0000 (15:35 +0300)
online_analyze.c

index 8af073b..3fe4da5 100644 (file)
@@ -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);
                }
        }