Re: wait event and archive_command - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: wait event and archive_command
Date
Msg-id YXKFJ1AeFXa3/M9g@paquier.xyz
Whole thread Raw
In response to wait event and archive_command  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Responses Re: wait event and archive_command  (Fujii Masao <masao.fujii@oss.nttdata.com>)
List pgsql-hackers
On Thu, Oct 21, 2021 at 10:57:50PM +0900, Fujii Masao wrote:
> Also how about adding wait events for other commands like
> archive_cleanup_command, restore_command and recovery_end_command?

+1 to add something for all of them as we track the startup process in
pg_stat_activity.  Thinking with a larger picture, this comes down to
the usage of system().  We could introduce a small wrapper of system()
that takes as argument a wait event for the backend.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [PATCH] Fix memory corruption in pg_shdepend.c
Next
From: Vladimir Sitnikov
Date:
Subject: Re: Adding CI to our tree