Re: Add new option 'all' to pg_stat_reset_shared() - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Add new option 'all' to pg_stat_reset_shared()
Date
Msg-id ZUw0_tA7g0dkTow8@paquier.xyz
Whole thread Raw
In response to Re: Add new option 'all' to pg_stat_reset_shared()  (torikoshia <torikoshia@oss.nttdata.com>)
Responses Re: Add new option 'all' to pg_stat_reset_shared()
List 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

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: ensure, not insure
Next
From: Crisp Lee
Date:
Subject: Re: make pg_ctl more friendly