check online_analyze.enable for create table as
authorTeodor Sigaev <teodor@sigaev.ru>
Wed, 5 Apr 2017 15:44:08 +0000 (18:44 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Wed, 5 Apr 2017 15:44:08 +0000 (18:44 +0300)
online_analyze.c

index f9c8ffd..50d8aca 100644 (file)
@@ -638,7 +638,8 @@ onlineAnalyzeHookerUtility(
 #endif
 
        if (parsetree && IsA(parsetree, CreateTableAsStmt) &&
-               ((CreateTableAsStmt*)parsetree)->into)
+               ((CreateTableAsStmt*)parsetree)->into &&
+               online_analyze_enable)
                tblname = (RangeVar*)copyObject(((CreateTableAsStmt*)parsetree)->into->rel);
 
 #if PG_VERSION_NUM >= 100000