From 281fcbdfbbf6976e76d69169e2673df3436c640c Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Fri, 15 Jun 2018 15:35:55 +0300 Subject: [PATCH] add assert --- online_analyze.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } } -- 2.46.1