Re: Fix locking issue with fixed-size stats template in injection_points

Поиск
Список
Период
Сортировка
От Chao Li
Тема Re: Fix locking issue with fixed-size stats template in injection_points
Дата
Msg-id C27B79E2-4F59-4292-99C9-B0C169F595E8@gmail.com
обсуждение исходный текст
Ответ на Re: Fix locking issue with fixed-size stats template in injection_points  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Fix locking issue with fixed-size stats template in injection_points
Список pgsql-hackers


On Sep 29, 2025, at 14:27, Michael Paquier <michael@paquier.xyz> wrote:

On Mon, Sep 29, 2025 at 09:46:05AM +0800, Chao Li wrote:
I saw pg_state_begin_changecount_write() is called multiple places,
as you mention, for example bgwriter.

I've mentioned that in my first email, and put in details:
- pgstat_report_bgwriter() is called once, by the bgwriter.
- pgstat_report_checkpointer() is called three time, all by the
checkpointer.
- pgstat_report_archiver() is called twice, all by pgarch.c.

So all of them don't have a problem, two calls cannot happen
concurrently.
--
Michael

Thanks for the clarification. Then the patch looks good to me.

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/




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