From: Teodor Sigaev Date: Thu, 14 Jun 2018 18:05:18 +0000 (+0300) Subject: v11 support X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=31796cdacc6581574928d3ae6b1010d7700e456f;p=online_analyze.git v11 support --- diff --git a/online_analyze.c b/online_analyze.c index 3051283..20b0e82 100644 --- a/online_analyze.c +++ b/online_analyze.c @@ -850,8 +850,12 @@ onlineAnalyzeHookerUtility( { VacuumStmt *vac = (VacuumStmt*)parsetree; +#if PG_VERSION_NUM >= 110000 + tblnames = vac->rels; +#else if (vac->relation) tblnames = list_make1(vac->relation); +#endif if (vac->options & (VACOPT_VACUUM | VACOPT_FULL | VACOPT_FREEZE)) {