make beauty
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 13 Sep 2012 15:45:53 +0000 (19:45 +0400)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 13 Sep 2012 15:45:53 +0000 (19:45 +0400)
online_analyze.c

index 50ee68b..2519b5e 100644 (file)
@@ -442,11 +442,9 @@ onlineAnalyzeHooker(QueryDesc *queryDesc)
        if (online_analyze_enable && queryDesc->plannedstmt &&
                        (queryDesc->operation == CMD_INSERT || 
                         queryDesc->operation == CMD_UPDATE ||
-                        queryDesc->operation == CMD_DELETE ||
-#if PG_VERSION_NUM >= 90200
-                        0 /* (queryDesc->operation == CMD_SELECT && queryDesc->dest && queryDesc->dest == DestIntoRel) */
-#else
-                        (queryDesc->operation == CMD_SELECT && queryDesc->plannedstmt->intoClause)
+                        queryDesc->operation == CMD_DELETE
+#if PG_VERSION_NUM < 90200
+                        || (queryDesc->operation == CMD_SELECT && queryDesc->plannedstmt->intoClause)
 #endif
                         ))
        {