From: Teodor Sigaev Date: Wed, 5 Apr 2017 15:44:08 +0000 (+0300) Subject: check online_analyze.enable for create table as X-Git-Url: http://sigaev.ru/git/gitweb.cgi?p=online_analyze.git;a=commitdiff_plain;h=d2be5752026c585a7a10f15936bbf7e89cf07d19 check online_analyze.enable for create table as --- diff --git a/online_analyze.c b/online_analyze.c index f9c8ffd..50d8aca 100644 --- a/online_analyze.c +++ b/online_analyze.c @@ -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