public inbox for [email protected]
help / color / mirror / Atom feedFrom: Nathan Bossart <[email protected]>
To: Imseih (AWS), Sami <[email protected]>
Cc: Heikki Linnakangas <[email protected]>
Cc: Bertrand Drouvot <[email protected]>
Cc: Tom Lane <[email protected]>
Cc: Robert Haas <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Restart pg_usleep when interrupted
Date: Tue, 13 Aug 2024 11:40:27 -0500
Message-ID: <ZruMe-ppopQX4uP8@nathan> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<ZrpnfTVK-iaIW98I@nathan>
<[email protected]>
<[email protected]>
<ZrqG0tIgP2HbGRm1@nathan>
<[email protected]>
<Zrt3ReA-nB7MJn2q@nathan>
<[email protected]>
<ZruCZOKzS0LGAGTb@nathan>
<[email protected]>
On Tue, Aug 13, 2024 at 11:07:46AM -0500, Imseih (AWS), Sami wrote:
> Having to add special handling to space out instrumentation
> directly in vacuum_delay_point seems very odd to me. I don't
> think vacuum_delay_point should have to worry about this.
>
> Also,
> 1/ what is an appropriate interval to collect these stats?
> 2/ What if there are other callers in the future that wish
> to instrument parallel vacuum workers? they will need to implement
> similar logic.
None of this seems intractable to me. 1 Hz seems like an entirely
reasonable place to start, and it is very easy to change (or to even make
configurable). pg_stat_progress_vacuum might show slightly old values in
this column, but that should be easy enough to explain in the docs if we
are really concerned about it. If other callers want to do something
similar, maybe we should add a more generic implementation in
backend_progress.c.
--
nathan
view thread (18+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: Restart pg_usleep when interrupted
In-Reply-To: <ZruMe-ppopQX4uP8@nathan>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox