Re: Issue with pg_stat_subscription_stats

Поиск
Список
Период
Сортировка
От Masahiko Sawada
Тема Re: Issue with pg_stat_subscription_stats
Дата
Msg-id CAD21AoBMmO-vdm5-as2jnazUxOQnp6QjOc3hU87j1C3fmCpdRA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Issue with pg_stat_subscription_stats  (Andres Freund <andres@anarazel.de>)
Ответы Re: Issue with pg_stat_subscription_stats  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Wed, Jul 6, 2022 at 10:48 AM Andres Freund <andres@anarazel.de> wrote:
>
> 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?

Indeed. I've updated the patch.

Regards,

--
Masahiko Sawada
EDB:  https://www.enterprisedb.com/

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: pg_rewind: warn when checkpoint hasn't happened after promotion
Следующее
От: Noah Misch
Дата:
Сообщение: Re: First draft of the PG 15 release notes