v11 support
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 14 Jun 2018 18:05:18 +0000 (21:05 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 14 Jun 2018 18:05:18 +0000 (21:05 +0300)
online_analyze.c

index 3051283..20b0e82 100644 (file)
@@ -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))
                        {