Re: Add new option 'all' to pg_stat_reset_shared()

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Add new option 'all' to pg_stat_reset_shared()
Дата
Msg-id ZUw0_tA7g0dkTow8@paquier.xyz
обсуждение исходный текст
Ответ на Re: Add new option 'all' to pg_stat_reset_shared()  (torikoshia <torikoshia@oss.nttdata.com>)
Ответы Re: Add new option 'all' to pg_stat_reset_shared()
Список pgsql-hackers
On Thu, Nov 09, 2023 at 10:10:39AM +0900, torikoshia wrote:
> I am a little concerned about that the reset time is not the same and that
> GetCurrentTimestamp() is called multiple times, but I think it would be
> acceptable because the function is probably not used that often and the
> reset time is not atomic in practice.

Arf, right.  I misremembered that this is just a clock_timestamp() so
that's not transaction-resilient.  Anyway, my take is that this is not
a big deal in practice compared to the usability of the wrapper.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: ensure, not insure
Следующее
От: Crisp Lee
Дата:
Сообщение: Re: make pg_ctl more friendly