PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | PG_WAIT_LWLOCK 0x01000000U |
#define | PG_WAIT_LOCK 0x03000000U |
#define | PG_WAIT_BUFFER_PIN 0x04000000U |
#define | PG_WAIT_ACTIVITY 0x05000000U |
#define | PG_WAIT_CLIENT 0x06000000U |
#define | PG_WAIT_EXTENSION 0x07000000U |
#define | PG_WAIT_IPC 0x08000000U |
#define | PG_WAIT_TIMEOUT 0x09000000U |
#define | PG_WAIT_IO 0x0A000000U |
Functions | |
const char * | pgstat_get_wait_event (uint32 wait_event_info) |
const char * | pgstat_get_wait_event_type (uint32 wait_event_info) |
static void | pgstat_report_wait_start (uint32 wait_event_info) |
static void | pgstat_report_wait_end (void) |
void | pgstat_set_wait_event_storage (uint32 *wait_event_info) |
void | pgstat_reset_wait_event_storage (void) |
Variables | |
PGDLLIMPORT uint32 * | my_wait_event_info |
#define PG_WAIT_ACTIVITY 0x05000000U |
Definition at line 21 of file wait_event.h.
#define PG_WAIT_BUFFER_PIN 0x04000000U |
Definition at line 20 of file wait_event.h.
#define PG_WAIT_CLIENT 0x06000000U |
Definition at line 22 of file wait_event.h.
#define PG_WAIT_EXTENSION 0x07000000U |
Definition at line 23 of file wait_event.h.
#define PG_WAIT_IO 0x0A000000U |
Definition at line 26 of file wait_event.h.
#define PG_WAIT_IPC 0x08000000U |
Definition at line 24 of file wait_event.h.
#define PG_WAIT_LOCK 0x03000000U |
Definition at line 19 of file wait_event.h.
#define PG_WAIT_LWLOCK 0x01000000U |
Definition at line 18 of file wait_event.h.
#define PG_WAIT_TIMEOUT 0x09000000U |
Definition at line 25 of file wait_event.h.
enum WaitEventActivity |
Definition at line 36 of file wait_event.h.
enum WaitEventClient |
Definition at line 61 of file wait_event.h.
enum WaitEventIO |
Definition at line 162 of file wait_event.h.
enum WaitEventIPC |
Definition at line 80 of file wait_event.h.
enum WaitEventTimeout |
Definition at line 143 of file wait_event.h.
const char* pgstat_get_wait_event | ( | uint32 | wait_event_info | ) |
Definition at line 129 of file wait_event.c.
References GetLockNameFromTagType(), GetLWLockIdentifier(), PG_WAIT_ACTIVITY, PG_WAIT_BUFFER_PIN, PG_WAIT_CLIENT, PG_WAIT_EXTENSION, PG_WAIT_IO, PG_WAIT_IPC, PG_WAIT_LOCK, PG_WAIT_LWLOCK, PG_WAIT_TIMEOUT, pgstat_get_wait_activity(), pgstat_get_wait_client(), pgstat_get_wait_io(), pgstat_get_wait_ipc(), and pgstat_get_wait_timeout().
Referenced by pg_stat_get_activity(), and pg_stat_get_backend_wait_event().
const char* pgstat_get_wait_event_type | ( | uint32 | wait_event_info | ) |
Definition at line 74 of file wait_event.c.
References PG_WAIT_ACTIVITY, PG_WAIT_BUFFER_PIN, PG_WAIT_CLIENT, PG_WAIT_EXTENSION, PG_WAIT_IO, PG_WAIT_IPC, PG_WAIT_LOCK, PG_WAIT_LWLOCK, and PG_WAIT_TIMEOUT.
Referenced by pg_stat_get_activity(), and pg_stat_get_backend_wait_event_type().
|
inlinestatic |
Definition at line 287 of file wait_event.h.
References my_wait_event_info.
Referenced by AbortSubTransaction(), AbortTransaction(), AddToDataDirLockFile(), ApplyLogicalMappingFile(), assign_xlog_sync_method(), AutoVacLauncherMain(), BackgroundWriterMain(), basebackup_read_file(), BootStrapXLOG(), CheckpointerMain(), CheckPointLogicalRewriteHeap(), copy_file(), CreateDirAndVersionFile(), CreateLockFile(), dsm_impl_mmap(), dsm_impl_posix_resize(), ExecuteRecoveryCommand(), FilePrefetch(), FileRead(), FileSync(), FileTruncate(), FileWrite(), FileWriteback(), heap_xlog_logical_rewrite(), issue_xlog_fsync(), LWLockReportWaitEnd(), perform_spin_delay(), ProcArrayGroupClearXid(), read_relmap_file(), ReadControlFile(), readTimeLineHistory(), ReadTwoPhaseFile(), RecheckDataDirLockFile(), RecreateTwoPhaseFile(), ReorderBufferSerializeChange(), RestoreArchivedFile(), RestoreSlotFromDisk(), SaveSlotToPath(), SendTimeLineHistory(), shell_archive_file(), ShutdownAuxiliaryProcess(), SlruPhysicalReadPage(), SlruPhysicalWritePage(), SnapBuildRestoreContents(), SnapBuildSerialize(), TransactionGroupUpdateXidStatus(), update_controlfile(), vacuum_delay_point(), WaitEventSetWait(), WaitExceedsMaxStandbyDelay(), WALRead(), WalSndErrorCleanup(), WalWriterMain(), write_relmap_file(), WriteControlFile(), writeTimeLineHistory(), writeTimeLineHistoryFile(), XLogFileCopy(), XLogFileInitInternal(), XLogPageRead(), and XLogWrite().
|
inlinestatic |
Definition at line 271 of file wait_event.h.
References my_wait_event_info.
Referenced by AddToDataDirLockFile(), ApplyLogicalMappingFile(), assign_xlog_sync_method(), basebackup_read_file(), BootStrapXLOG(), CheckPointLogicalRewriteHeap(), copy_file(), CreateDirAndVersionFile(), CreateLockFile(), dsm_impl_mmap(), dsm_impl_posix_resize(), ExecuteRecoveryCommand(), FilePrefetch(), FileRead(), FileSync(), FileTruncate(), FileWrite(), FileWriteback(), heap_xlog_logical_rewrite(), issue_xlog_fsync(), LWLockReportWaitStart(), perform_spin_delay(), ProcArrayGroupClearXid(), read_relmap_file(), ReadControlFile(), readTimeLineHistory(), ReadTwoPhaseFile(), RecheckDataDirLockFile(), RecreateTwoPhaseFile(), ReorderBufferSerializeChange(), RestoreArchivedFile(), RestoreSlotFromDisk(), SaveSlotToPath(), SendTimeLineHistory(), shell_archive_file(), SlruPhysicalReadPage(), SlruPhysicalWritePage(), SnapBuildRestoreContents(), SnapBuildSerialize(), TransactionGroupUpdateXidStatus(), update_controlfile(), vacuum_delay_point(), WaitEventSetWait(), WaitExceedsMaxStandbyDelay(), WALRead(), write_relmap_file(), WriteControlFile(), writeTimeLineHistory(), writeTimeLineHistoryFile(), XLogFileCopy(), XLogFileInitInternal(), XLogPageRead(), and XLogWrite().
void pgstat_reset_wait_event_storage | ( | void | ) |
Definition at line 62 of file wait_event.c.
References local_my_wait_event_info, and my_wait_event_info.
Referenced by AuxiliaryProcKill(), and ProcKill().
void pgstat_set_wait_event_storage | ( | uint32 * | wait_event_info | ) |
Definition at line 50 of file wait_event.c.
References my_wait_event_info.
Referenced by InitAuxiliaryProcess(), and InitProcess().
|
extern |
Definition at line 38 of file wait_event.c.
Referenced by pgstat_report_wait_end(), pgstat_report_wait_start(), pgstat_reset_wait_event_storage(), and pgstat_set_wait_event_storage().