summaryrefslogtreecommitdiff
path: root/src/include/utils/wait_event.h
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2022-07-14 22:52:13 +1200
committerThomas Munro <tmunro@postgresql.org>2022-07-14 23:56:28 +1200
commit7bae3bbf62d63cdd49ae4ca4a851cef0cdbe6ab5 (patch)
tree943579628b9baf14f82a468cf34c55e47d4891d6 /src/include/utils/wait_event.h
parent712704d3539e5ed6807e0b46fddaaf8ed47c2403 (diff)
Create a distinct wait event for POSIX DSM allocation.
Previously we displayed "DSMFillZeroWrite" while in posix_fallocate(), because we shared the same wait event for "mmap" and "posix" DSM types. Let's introduce a new wait event "DSMAllocate", to be more accurate. Reported-by: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/20220711174518.yldckniicknsxgzl%40awork3.anarazel.de
Diffstat (limited to 'src/include/utils/wait_event.h')
-rw-r--r--src/include/utils/wait_event.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/wait_event.h b/src/include/utils/wait_event.h
index b578e2ec757..c3ade011206 100644
--- a/src/include/utils/wait_event.h
+++ b/src/include/utils/wait_event.h
@@ -178,6 +178,7 @@ typedef enum
WAIT_EVENT_DATA_FILE_SYNC,
WAIT_EVENT_DATA_FILE_TRUNCATE,
WAIT_EVENT_DATA_FILE_WRITE,
+ WAIT_EVENT_DSM_ALLOCATE,
WAIT_EVENT_DSM_FILL_ZERO_WRITE,
WAIT_EVENT_LOCK_FILE_ADDTODATADIR_READ,
WAIT_EVENT_LOCK_FILE_ADDTODATADIR_SYNC,