mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Replace postmaster.c's own backend type codes with BackendType
Introduce a separate BackendType for dead-end children, so that we don't need a separate dead_end flag. Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/a102f15f-eac4-4ff2-af02-f9ff209ec66f@iki.fi
This commit is contained in:
@@ -330,6 +330,8 @@ pgstat_io_snapshot_cb(void)
|
||||
*
|
||||
* The following BackendTypes do not participate in the cumulative stats
|
||||
* subsystem or do not perform IO on which we currently track:
|
||||
* - Dead-end backend because it is not connected to shared memory and
|
||||
* doesn't do any IO
|
||||
* - Syslogger because it is not connected to shared memory
|
||||
* - Archiver because most relevant archiving IO is delegated to a
|
||||
* specialized command or module
|
||||
@@ -352,6 +354,7 @@ pgstat_tracks_io_bktype(BackendType bktype)
|
||||
switch (bktype)
|
||||
{
|
||||
case B_INVALID:
|
||||
case B_DEAD_END_BACKEND:
|
||||
case B_ARCHIVER:
|
||||
case B_LOGGER:
|
||||
case B_WAL_RECEIVER:
|
||||
|
||||
Reference in New Issue
Block a user