add pgproee support
[online_analyze.git] / online_analyze.c
index f5a36e5..6ffcc30 100644 (file)
@@ -286,7 +286,7 @@ includeTablesCheck(char **newval, void **extra, GucSource source)
 static void
 includeTablesAssign(const char *newval, void *extra)
 {
-       tableListAssign(newval, true, &excludeTables);
+       tableListAssign(newval, true, &includeTables);
 }
 
 #else /* PG_VERSION_NUM < 90100 */
@@ -558,6 +558,11 @@ makeAnalyze(Oid relOid, CmdKind operation, int64 naffected)
                TimestampTz                             startStamp, endStamp;
                int                                             flags;
 
+#ifdef PGPRO_EE
+               /* ATX is not compatible with online_analyze */
+               if (getNestLevelATX() != 0)
+                       return;
+#endif
 
                memset(&startStamp, 0, sizeof(startStamp)); /* keep compiler quiet */