From d2be5752026c585a7a10f15936bbf7e89cf07d19 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Wed, 5 Apr 2017 18:44:08 +0300 Subject: [PATCH] check online_analyze.enable for create table as --- online_analyze.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.37.3