Hello
do { \
+ pgstat_report_mixed_anytime = true; \
if (pgstat_should_count_relation(rel)) \
(rel)->pgstat_info->counts.numscans++; \
Shouldn't these pgstat_report_mixed_anytime changes go inside the if
statement in all macros?
+/* Track if mixed anytime stats need to be flushed */
+
/* Backend-local stats state */
extern PGDLLIMPORT PgStat_LocalState pgStatLocal;
This seems to be a leftover comment