Assert(rstat->tableid == relOid);
+ elog(NOTICE,"makeAnalyze op:%d %u", operation, naffected);
+
if (operation != CK_TRUNCATE &&
(found == false || rstat->rereadStat == true))
{
}
}
- if (naffected == 0)
- rstat->rereadStat = true;
-
if (newTable ||
/* force analyze from after truncate */
operation == CK_TRUNCATE || (
{
case CK_INSERT:
rstat->n_tuples += naffected;
+ rstat->rereadStat = false;
break;
case CK_UPDATE:
rstat->n_tuples += naffected;
break;
case CK_TRUNCATE:
rstat->n_tuples = 0;
+ rstat->rereadStat = false;
break;
default:
break;