Friday, December 17, 2021 2:03 PM Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote:
> It sends stats packets at every commit-like operation on apply workers. The
> current pgstat is so smart that it refrain from sending stats packets at too high
> frequency. We already suffer frequent stats packets so apply workers need to
> bahave the same way.
>
> That is, the new stats numbers are once accumulated locally then the
> accumulated numbers are sent to stats collector by pgstat_report_stat.
Hi, Horiguchi-san.
I felt your point is absolutely right !
Updated the patch to address your concern.
Best Regards,
Takamichi Osumi