From: Teodor Sigaev Date: Thu, 13 Apr 2017 15:21:22 +0000 (+0300) Subject: turn off reread flag in case of truncation X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=fad4d8cc9583a40434b26142ce73b40225f8f4fa;p=online_analyze.git turn off reread flag in case of truncation --- diff --git a/online_analyze.c b/online_analyze.c index 22c43e6..b710d47 100644 --- a/online_analyze.c +++ b/online_analyze.c @@ -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: