From: Teodor Sigaev Date: Fri, 15 Jun 2018 12:17:29 +0000 (+0300) Subject: fix support of v11 X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=8602afc5dae3e70700885bfd6f8d36e4be46fb77;hp=31796cdacc6581574928d3ae6b1010d7700e456f;p=online_analyze.git fix support of v11 --- diff --git a/online_analyze.c b/online_analyze.c index 20b0e82..8af073b 100644 --- a/online_analyze.c +++ b/online_analyze.c @@ -927,7 +927,12 @@ onlineAnalyzeHookerUtility( foreach(l, tblnames) { - RangeVar *tblname = (RangeVar*)lfirst(l); + RangeVar *tblname = +#if PG_VERSION_NUM >= 110000 + (IsA(lfirst(l), VacuumRelation)) ? + ((VacuumRelation*)lfirst(l))->relation : +#endif + (RangeVar*)lfirst(l); Oid tblOid = RangeVarGetRelid(tblname, NoLock, true); makeAnalyze(tblOid, op, -1);