[SDK reference](../../index.md) / [Models](../index.md) / [Databases](index.md)

# PostgresSession

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Databases`  

One client session of the cluster, with its statement's values replaced by placeholders.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `ApplicationName` | `string?` | `applicationName` | The applicationName property |
| `BlockedBy` | `List<int?>?` | `blockedBy` | The sessions that hold the locks this one waits for. |
| `ClientAddress` | `string?` | `clientAddress` | The client's address. |
| `Database` | `string?` | `database` | The database property |
| `Pid` | `int?` | `pid` | The pid property |
| `RoleName` | `string?` | `roleName` | The role the session signed in as. |
| `RunningSeconds` | `double?` | `runningSeconds` | Seconds the current statement has run, or the session has been idle. |
| `State` | `string?` | `state` | active, idle, idle in transaction, and so on, as PostgreSQL reports it. |
| `Statement` | `string?` | `statement` | The running (or last) statement, placeholders for values, cut at 400 characters. |
| `TransactionSeconds` | `double?` | `transactionSeconds` | Seconds the session's transaction has been open. |
| `WaitEvent` | `string?` | `waitEvent` | The waitEvent property |
| `WaitEventType` | `string?` | `waitEventType` | What the session waits on, for example Lock or IO. |
