pg_stat_io for the startup process - Mailing list pgsql-hackers

From Fujii Masao
Subject pg_stat_io for the startup process
Date
Msg-id 5315aedc-fbca-1556-c5de-dc2e00b23a14@oss.nttdata.com
Whole thread Raw
Responses Re: pg_stat_io for the startup process
List pgsql-hackers
Hi,

Regarding pg_stat_io for the startup process, I noticed that the counters
are only incremented after the startup process exits, not during WAL replay
in standby mode. This is because pgstat_flush_io() is only called when
the startup process exits. Shouldn't it be called during WAL replay as well
to report IO statistics by the startup process even in standby mode?

Also, the pg_stat_io view includes a row with backend_type=startup and
context=vacuum, but it seems that the startup process doesn't perform
any I/O operations with BAS_VACUUM. If this understanding is right,
shouldn't we omit this row from the view? Additionally, I noticed that
the view also includes a row with backend_type=startup and
context=bulkread / bulkwrite. Do these operations actually occur
during startup process?

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION



pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Should vacuum process config file reload more often
Next
From: Denis Laxalde
Date:
Subject: Re: Add PQsendSyncMessage() to libpq