Why reset pgstat during recovery

suyu.cmj <mengjuan.cmj@alibaba-inc.com>

From: 蔡梦娟(玊于) <mengjuan.cmj@alibaba-inc.com>
To: "pgsql-hackers" <pgsql-hackers@lists.postgresql.org>
Date: 2021-04-02T09:41:33Z
Lists: pgsql-hackers
    Hi, all

    I want to know why call pgstat_reset_all function during recovery process,  under what circumstances the data will be invalid after recovery?
 
    Thanks & Best Regard