turn off reread flag in case of truncation
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 13 Apr 2017 15:21:22 +0000 (18:21 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 13 Apr 2017 15:21:22 +0000 (18:21 +0300)
online_analyze.c

index 22c43e6..b710d47 100644 (file)
@@ -370,9 +370,6 @@ makeAnalyze(Oid relOid, CmdKind operation, int64 naffected)
        if (relOid == InvalidOid)
                return;
 
-       elog(NOTICE,"makeAnalyze operation: %d  naffected: %d",
-                operation, (int32)naffected);
-
        if (naffected == 0)
                /* return if there is no changes */
                return;
@@ -565,6 +562,7 @@ makeAnalyze(Oid relOid, CmdKind operation, int64 naffected)
                                break;
                        case CK_TRUNCATE:
                        case CK_FASTTRUNCATE:
+                               rstat->rereadStat = false;
                                rstat->n_tuples = 0;
                                break;
                        default: