On 2022-07-06 10:25:02 +0900, Masahiko Sawada wrote:
> > I think most of this could just be pgstat_reset_entry().
>
> I think pgstat_reset_entry() doesn't work for this case as it skips
> resetting the entry if it doesn't exist.
True - but a pgstat_get_entry_ref(create = true); pgstat_reset_entry(); would
still be shorter?