pgstats message. This might need to be done differently later, but
with the current logic that's what should happen.
/*
* Report ANALYZE to the stats collector, too; likewise, tell it to
* adopt these numbers only if we're not inside a VACUUM that got a
- * better number.
+ * better number. However, a call with inh = true shouldn't reset
+ * the stats.
*/
- pgstat_report_analyze(onerel, update_reltuples, totalrows, totaldeadrows);
+ if (!inh)
+ pgstat_report_analyze(onerel, update_reltuples,
+ totalrows, totaldeadrows);
/* We skip to here if there were no analyzable columns */
cleanup: