# Wait Event Description

It represents a situation where a process is pausing its operation, waiting for a certain condition to be met or a resource to become available.

### Wait Events

By analyzing these wait events, users can identify what resources or conditions are causing delays.

In the [Session History](https://docs.datasentinel.io/manual/features/key-features/session-history) dashboard, located in the bottom left, you'll find an option that allows you to group the workload by wait events.&#x20;

Accompanying each wait event is a question mark icon, which, when hovered over, reveals a description of the event.&#x20;

Given the extensive variety of wait events in PostgreSQL, as detailed in the [PostgreSQL documentation](https://www.postgresql.org/docs/current/monitoring-stats.html#WAIT-EVENT-ACTIVITY-TABLE), merely knowing the event's name may not suffice for a comprehensive understanding of what happened.&#x20;

{% hint style="info" %}
This is where the tooltip feature, offering a full description of each event, becomes immensely beneficial.
{% endhint %}

<figure><img src="https://1072624949-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlcWi6G1jtNuyGT9C0pkc%2Fuploads%2FSYNY6kF0rFwijF2rz5ti%2FEventDescription.gif?alt=media&#x26;token=61a1fa05-4ca2-439f-ac74-6e91e07ecc72" alt=""><figcaption></figcaption></figure>

### Wait Event Types

PostgreSQL categorizes wait events into various types, such as I/O waits, lock waits, network waits, and more.&#x20;

A **wait event type** refers to a specific category under which various wait events are classified. These types represent different kinds of operations or resources that a database process may need to wait for during its execution. &#x20;

<figure><img src="https://1072624949-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlcWi6G1jtNuyGT9C0pkc%2Fuploads%2FKQlBical2XuW5RPcWfSh%2FwaitEventTypes.png?alt=media&#x26;token=13c26eaf-4618-4867-8153-46dd4ece745d" alt=""><figcaption><p>Session History Dashboard Displaying Workload Grouped by Wait Event Types</p></figcaption></figure>

{% hint style="info" %}
In the [Session History](https://docs.datasentinel.io/manual/features/key-features/session-history) dashboard, you have the flexibility to organize the workload either by wait event types or specific wait events.&#x20;

This grouping can be applied both within the timeline chart and/or  in the bottom left section of the dashboard, offering a comprehensive view of your database's performance dynamics.&#x20;
{% endhint %}
