mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Remove unused wait events.
Commit 464824323e
introduced the wait events which were neither used by
that commit nor by follow-up commits for that work.
Author: Masahiro Ikeda
Backpatch-through: 14, where it was introduced
Discussion: https://postgr.es/m/ff077840-3ab2-04dd-bbe4-4f5dfd2ad481@oss.nttdata.com
This commit is contained in:
@ -714,18 +714,6 @@ pgstat_get_wait_io(WaitEventIO w)
|
||||
case WAIT_EVENT_WAL_WRITE:
|
||||
event_name = "WALWrite";
|
||||
break;
|
||||
case WAIT_EVENT_LOGICAL_CHANGES_READ:
|
||||
event_name = "LogicalChangesRead";
|
||||
break;
|
||||
case WAIT_EVENT_LOGICAL_CHANGES_WRITE:
|
||||
event_name = "LogicalChangesWrite";
|
||||
break;
|
||||
case WAIT_EVENT_LOGICAL_SUBXACT_READ:
|
||||
event_name = "LogicalSubxactRead";
|
||||
break;
|
||||
case WAIT_EVENT_LOGICAL_SUBXACT_WRITE:
|
||||
event_name = "LogicalSubxactWrite";
|
||||
break;
|
||||
|
||||
/* no default case, so that compiler will warn */
|
||||
}
|
||||
|
@ -220,11 +220,7 @@ typedef enum
|
||||
WAIT_EVENT_WAL_READ,
|
||||
WAIT_EVENT_WAL_SYNC,
|
||||
WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN,
|
||||
WAIT_EVENT_WAL_WRITE,
|
||||
WAIT_EVENT_LOGICAL_CHANGES_READ,
|
||||
WAIT_EVENT_LOGICAL_CHANGES_WRITE,
|
||||
WAIT_EVENT_LOGICAL_SUBXACT_READ,
|
||||
WAIT_EVENT_LOGICAL_SUBXACT_WRITE
|
||||
WAIT_EVENT_WAL_WRITE
|
||||
} WaitEventIO;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user