From fad4d8cc9583a40434b26142ce73b40225f8f4fa Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Thu, 13 Apr 2017 18:21:22 +0300 Subject: [PATCH] turn off reread flag in case of truncation --- online_analyze.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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: -- 2.46.1