mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Report wait events for local shell commands like archive_command.
This commit introduces new wait events for archive_command, archive_cleanup_command, restore_command and recovery_end_command. Author: Fujii Masao Reviewed-by: Bharath Rupireddy, Michael Paquier Discussion: https://postgr.es/m/4ca4f920-6b48-638d-08b2-93598356f5d3@oss.nttdata.com
This commit is contained in:
@ -555,7 +555,10 @@ pgarch_archiveXlog(char *xlog)
|
||||
snprintf(activitymsg, sizeof(activitymsg), "archiving %s", xlog);
|
||||
set_ps_display(activitymsg);
|
||||
|
||||
pgstat_report_wait_start(WAIT_EVENT_ARCHIVE_COMMAND);
|
||||
rc = system(xlogarchcmd);
|
||||
pgstat_report_wait_end();
|
||||
|
||||
if (rc != 0)
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user