---
title: "PostgreSQL"
description: ""
url: "https://docs.itrsgroup.com/docs/geneos/7.11.0/collection/postgresql-monitoring/index.html"
---
## Overview

PostgreSQL monitoring is a Gateway configuration file that enables monitoring of Postgresql database installation through the SQL Toolkit plug-in.

This integration template allows monitoring of queries, views, triggers in the Gateway set-up, and other server activities, such as:

- Tracking of command being executed in the server.
- Monitoring of information about table and index dataview.
- Permits user-defined functions.

## Intended audience

This guide is intended for users who are setting up, configuring, troubleshooting and maintaining this integration. This is intended for users who will be using Active Console to monitor data from PostgreSQL. Once the integration is set up, the samplers providing the dataviews become available to that Gateway.

As a user, you should be familiar with SQL or any other database, and with the administration of the PostgreSQL services.

## Prerequisites


The following requirements must be met before the installation and setup of the template:



- A machine running the Netprobe must have access to the host where the PostgreSQL instance is installed and the port PostgreSQL is listening to.
- Netprobe 4.6 or higher.
- Gateway 4.8 or higher.
- PostgreSQL 9.6.


## Installation procedure

 Ensure that you have read and can follow the system requirements prior to installation and setup of this integration template.

1. Download the integration package `geneos-integration-postgresql-<version>.zip` from the [Downloads](https://resources.itrsgroup.com/downloads) site.
2. Open Gateway Setup Editor.
3. In the **Navigation** panel, click **Includes** to create a new file.
4. Enter the location of the file to include in the **Location** field. In this example, it is the `include/PostgreSQLMonitoring.xml`.
5. Update the **Priority** field. This can be any value except `1`. If you input a priority of `1`, the Gateway Setup Editor returns an error.
6. Expand the file location in the **Include** section.
7. Select **Click to load**.
8. Click **Yes** to load the new Postgresql include file.
![Postgresql include file](https://docscdn.itrsgroup.com/geneos/images/integrations/postgresql-ug-load-integration-file.png)

10. Click **Managed entities** in the Navigation panel.
11. Add the **Postgresql** type to the Managed Entity section that you will use to monitor Postgresql.
12. Click **Validate current document** ![](https://docscdn.itrsgroup.com/geneos/images/Icons/validate22x22.png "icon") to check your configuration.
13. Click **Save current document** ![](https://docscdn.itrsgroup.com/geneos/images/Icons/save16x16.png "icon") to apply the changes.

![Managed entities](https://docscdn.itrsgroup.com/geneos/images/integrations/postgresql-ug-add-managed-entity.png)

### Set up the samplers

These are the pre-configured samplers available to use in `PostgresqlMonitoring.xml`.

Configure the required fields by referring to the table below:

<div class="table-container">
<table class="legacy-table" style="width: 100%;mc-table-style: url('../Resources/TableStyles/ref_2_col_table.css');margin-left: 0;margin-right: auto;" class="TableStyle-ref_2_col_table" cellspacing="0">
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <thead>
                        <tr class="TableStyle-ref_2_col_table-Head-Header1">
                            <th class="TableStyle-ref_2_col_table-HeadD-Column1-Header1">Samplers</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Checkpoint</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Database-Statistics</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Processes</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Replication</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Active Locks</td>
                        </tr>
                    </tbody>
                </table>
            
</div>

### Set up the variables

The `PostgresqlMonitoring.xml` template provides the variables that are set in the **Environments** section:

<div class="table-container">
<table class="legacy-table" style="width: 100%;margin-left: 0;margin-right: auto;mc-table-style: url('../Resources/TableStyles/ref_2_col_table.css');" class="TableStyle-ref_2_col_table" cellspacing="0">
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <thead>
                        <tr class="TableStyle-ref_2_col_table-Head-Header1">
                            <th class="TableStyle-ref_2_col_table-HeadE-Column1-Header1">Samplers</th>
                            <th class="TableStyle-ref_2_col_table-HeadD-Column1-Header1">Description</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">PSQL_SERVER_NAME</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">IP/Hostname where the Postgresql installation resides.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">PSQL_PORT</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Assigned port in the Postgresql service.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">
                              PSQL_USERNAME
                                <ul><li>
                                        pg_stat_user_tables
                                    </li><li>
                                       pg_stat_user_indexes
                                    </li><li>pg_statio_user_tables</li><li>pg_class</li><li>pg_namespace</li><li>
								pg_stat_bgwriter</li><li>pg_stat_database</li><li>
								pg_locks</li><li>
								pg_database</li><li>pg_stat_activity</li></ul></td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Username with the rights to access the following tables.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">PSQL_PASSWORD</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Password of the database user.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">PSQL_DBNAME</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">
                                <p>
                                Database names:</p>
                                <ul>
                                    <li><strong>Server Specific Metrics</strong> uses the default database Postgresql.</li>
                                    <li><strong>Database Specific Metrics</strong> specifies the actual database to monitor.
                            </li>
                                </ul>
                            </td>
                        </tr>
                    </tbody>
                </table>
            
</div>

### Set up the rules

The `PostgresqlMonitoring-SampleRules.xml` template also provides a separate sample rules that you can use to configure the Gateway Setup Editor.

Your configuration rules must be set in the **Includes** section.

If a rule has a **critical** and **warning** variable, you must configure it both to activate the rule:


**Note**

  The sample configuration file was verified working with Postgresql 9.6 and Netprobe 4.5 versions. 


<div class="table-container">
<table class="legacy-table" style="width: 100%;margin-left: 0;margin-right: auto;mc-table-style: url('../Resources/TableStyles/ref_3_col_table.css');" class="TableStyle-ref_3_col_table" cellspacing="0">
                    <col style="width: 158px;" class="TableStyle-ref_3_col_table-Column-Column1"/>
                    <col style="width: 174px;" class="TableStyle-ref_3_col_table-Column-Column1"/>
                    <col style="width: 154px;" class="TableStyle-ref_3_col_table-Column-Column1"/>
                    <thead>
                        <tr class="TableStyle-ref_3_col_table-Head-Header1">
                            <th class="TableStyle-ref_3_col_table-HeadE-Column1-Header1">Variables</th>
                            <th class="TableStyle-ref_3_col_table-HeadE-Column1-Header1">Critical</th>
                            <th class="TableStyle-ref_3_col_table-HeadD-Column1-Header1">Warning</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="TableStyle-ref_3_col_table-Body-Body1">
                            <td class="TableStyle-ref_3_col_table-BodyE-Column1-Body1">Checkpoint - Checkpoint Requests : Checks the ratio of checkpoints requested vs. scheduled checkpoints</td>
                            <td class="TableStyle-ref_3_col_table-BodyE-Column1-Body1">PSQL_CHECKPOINT_SCHEDULED_CRITICAL:   Possible values 1.0 - 100.0</td>
                            <td class="TableStyle-ref_3_col_table-BodyD-Column1-Body1">PSQL_CHECKPOINT_SCHEDULED_WARNING:   Possible values 1.0 - 100.0</td>
                        </tr>
                        <tr class="TableStyle-ref_3_col_table-Body-Body1">
                            <td class="TableStyle-ref_3_col_table-BodyE-Column1-Body1">Database-Statistics - Commit Ratio : Checks the ratio between transactions  committed vs rolledback</td>
                            <td class="TableStyle-ref_3_col_table-BodyE-Column1-Body1">PSQL_COMMIT_RATIO_CRITICAL:   Possible values 1.0 - 100.0</td>
                            <td class="TableStyle-ref_3_col_table-BodyD-Column1-Body1">PSQL_COMMIT_RATIO_WARNING:   Possible values 1.0 - 100.0</td>
                        </tr>
                        <tr class="TableStyle-ref_3_col_table-Body-Body1">
                            <td class="TableStyle-ref_3_col_table-BodyE-Column1-Body1">Database-Statistics - Connection utilisation : Rule that checks the connections used expressed in percentage compared to max_connections</td>
                            <td class="TableStyle-ref_3_col_table-BodyE-Column1-Body1">PSQL_CONNECTIONS_CRITICAL:   Possible values 1.0 - 100.0</td>
                            <td class="TableStyle-ref_3_col_table-BodyD-Column1-Body1">PSQL_CONNECTIONS_WARNING:   Possible values 1.0 - 100.0</td>
                        </tr>
                        <tr class="TableStyle-ref_3_col_table-Body-Body1">
                            <td class="TableStyle-ref_3_col_table-BodyE-Column1-Body1">Database-Statistics - Deadlocks : Checks for deadlocks</td>
                            <td class="TableStyle-ref_3_col_table-BodyE-Column1-Body1">PSQL_DEADLOCK_RATIO_CRITICAL:   Integer value</td>
                            <td class="TableStyle-ref_3_col_table-BodyD-Column1-Body1">PSQL_DEADLOCK_RATIO_WARNING:   Integer value</td>
                        </tr>
                        <tr class="TableStyle-ref_3_col_table-Body-Body1">
                            <td class="TableStyle-ref_3_col_table-BodyE-Column1-Body1">Processes - Long Running Queries : Checks the duration of query  execution</td>
                            <td class="TableStyle-ref_3_col_table-BodyE-Column1-Body1">PSQL_QUERY_EXECUTION_THRESHOLD_IN_SECS_CRITICAL:   Integer value</td>
                            <td class="TableStyle-ref_3_col_table-BodyD-Column1-Body1">PSQL_QUERY_EXECUTION_THRESHOLD_IN_SECS_WARNING:   Integer value</td>
                        </tr>
                        <tr class="TableStyle-ref_3_col_table-Body-Body1">
                            <td class="TableStyle-ref_3_col_table-BodyE-Column1-Body1">Replication - Delay : Checks for delays in replication</td>
                            <td class="TableStyle-ref_3_col_table-BodyE-Column1-Body1">PSQL_REPLICATION_DELAY_CRITICAL:   Integer value. Time in seconds</td>
                            <td class="TableStyle-ref_3_col_table-BodyD-Column1-Body1">PSQL_REPLICATION_DELAY_WARNING:   Integer value. Time in seconds</td>
                        </tr>
                        <tr class="TableStyle-ref_3_col_table-Body-Body1">
                            <td class="TableStyle-ref_3_col_table-BodyE-Column1-Body1">Checkpoint - Written Buffers Checkpoint : Checks the ratio of dirty buffers written by checkpoint vs bgwriter plus backends</td>
                            <td class="TableStyle-ref_3_col_table-BodyE-Column1-Body1">PSQL_WRITTEN_BUFFERS_CRITICAL:   Possible values 1.0 - 100.0</td>
                            <td class="TableStyle-ref_3_col_table-BodyD-Column1-Body1">PSQL_WRITTEN_BUFFERS_WARNING:   Possible values 1.0 - 100.0</td>
                        </tr>
                        <tr class="TableStyle-ref_3_col_table-Body-Body1">
                            <td class="TableStyle-ref_3_col_table-BodyB-Column1-Body1">Database-Statistics - Size Threshold : Checks the size of the databases in the currently monitored server</td>
                            <td class="TableStyle-ref_3_col_table-BodyB-Column1-Body1">PSQL_DATABASE_SIZE_CRITICAL:   Possible values - XXX kB, XXX MB, XXX GB and XXX TB</td>
                            <td class="TableStyle-ref_3_col_table-BodyA-Column1-Body1">Not applicable</td>
                        </tr>
                    </tbody>
                </table>
                
</div>

## Metrics and dataviews

### Active locks

![Active locks](https://docscdn.itrsgroup.com/geneos/images/integrations/postgresql-tr-active-locks-dataview.png)

<div class="table-container">
<table class="legacy-table" style="width: 100%;margin-left: 0;margin-right: auto;mc-table-style: url('../Resources/TableStyles/ref_2_col_table.css');" class="TableStyle-ref_2_col_table" cellspacing="0">
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <thead>
                        <tr class="TableStyle-ref_2_col_table-Head-Header1">
                            <th class="TableStyle-ref_2_col_table-HeadE-Column1-Header1">Column Name</th>
                            <th class="TableStyle-ref_2_col_table-HeadD-Column1-Header1">Description</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">pid/lockType/relation</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Lock information held by active processes in the database server.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">mode</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Refers to the name of the lock mode held by active processes.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">granted</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Set to <strong>True</strong> if lock was held, or to <strong>False</strong> if lock was awaited.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">fastpath</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Set to <strong>True</strong> if lock was taken via fast path, or to <strong>False</strong> if taken via main lock table.</td>
                        </tr>
                    </tbody>
                </table>
                
</div>

### Checkpoint

![Checkpoint](https://docscdn.itrsgroup.com/geneos/images/integrations/postgresql-tr-checkpoint-dataview.png)

<div class="table-container">
<table class="legacy-table" style="width: 100%;margin-left: 0;margin-right: auto;mc-table-style: url('../Resources/TableStyles/ref_2_col_table.css');" class="TableStyle-ref_2_col_table" cellspacing="0">
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <thead>
                        <tr class="TableStyle-ref_2_col_table-Head-Header1">
                            <th class="TableStyle-ref_2_col_table-HeadE-Column1-Header1">Column Name</th>
                            <th class="TableStyle-ref_2_col_table-HeadD-Column1-Header1">Description</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">host</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Configured host in the sampler.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">scheduledPerformed</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of scheduled checkpoints performed.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">requestedPerformed</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of requested checkpoints performed.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">scheduledRatio</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Equivalent to the ratio between <strong>scheduledPerformed</strong> and <strong>requestedPerformed</strong>.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">totalWriteTime</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Total amount of time spent in the checkpoint processing, where files are written to disk in milliseconds.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">totalSyncTime</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Total amount of time spent in the checkpoint processing, where files are synchronised to disk in milliseconds.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">buffersWrittenByCheckpoint</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of written buffers during the checkpoint.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">buffersWrittenByBgWriter</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of written buffers by the background writer.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">stoppedDueToMaxBuffers </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of times when a cleaning scan was stopped by the background writer due to the high volume of written buffers.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">backendWrittenBuffers </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of direct written buffers by a backend.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">backendFSYNC </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of times when a backend executed its own fsync call.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">allocatedBuffers</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of allocated buffers.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">checkpointWrittenBuffersRatio</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Equivalent to the ratio between <strong>buffersWrittenByCheckpoint</strong>, <strong>buffersWrittenByBgWriter</strong>, and <strong>backendWrittenBuffers</strong>.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">lastStatReset</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Time when the statistics were last reset.</td>
                        </tr>
                    </tbody>
                </table>
                
</div>

### Database statistics

![Database statistics](https://docscdn.itrsgroup.com/geneos/images/integrations/postgresql-tr-database-statistics-dataview.png)

<div class="table-container">
<table class="legacy-table" style="width: 100%;margin-left: 0;margin-right: auto;mc-table-style: url('../Resources/TableStyles/ref_2_col_table.css');" class="TableStyle-ref_2_col_table" cellspacing="0">
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <thead>
                        <tr class="TableStyle-ref_2_col_table-Head-Header1">
                            <th class="TableStyle-ref_2_col_table-HeadE-Column1-Header1">Column Name </th>
                            <th class="TableStyle-ref_2_col_table-HeadD-Column1-Header1">Description</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">database</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Name of the database.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">totalSize</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Disk space used by the database.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">activeConnections</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of connected backends to the database.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">connectionPctUtil</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Equivalent to (activeConnections / max_connections) multiplied by a 100.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">txnsCommitted</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of transactions in the database committed.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">txnsRolledback</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of transactions in the database rolled back.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">commitRatio</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Equivalent to the ratio between <strong>txnsCommitted</strong> and <strong>txnsRolledback</strong>.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">blocksReadCount </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of disk blocks.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">cachedBlocksCount </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of times when disk blocks were found in the buffer cache.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">cachedReadRatio </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Equivalent to the ratio between <strong>blocksReadCount</strong> and <strong>cachedBlocksCount</strong>.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">returnedRowsCount </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of rows returned by queries.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">fetchedRowsCount </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of rows fetched by queries.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">fetchedRatio </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Equivalent to the ratio between <strong>returnedRowsCount</strong> and <strong>fetchedRowsCount</strong></td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">insertedRowsCount </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of inserted rows by queries</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">updatedRowsCount </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of update rows by queries.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">deletedRowsCount</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of deleted rows by queries.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">deadlocksCount </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number detected deadlocks.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">readTime </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Time spent reading the data file blocks by the backend.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">writeTime </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Time spent writing the data file blocks by the backend.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">lastStatReset </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Time when the statistics were last reset.</td>
                        </tr>
                    </tbody>
                </table>
                
</div>

### Processes

![Processes](https://docscdn.itrsgroup.com/geneos/images/integrations/postgresql-tr-processes-dataview.png)

<div class="table-container">
<table class="legacy-table" style="width: 100%;margin-left: 0;margin-right: auto;mc-table-style: url('../Resources/TableStyles/ref_2_col_table.css');" class="TableStyle-ref_2_col_table" cellspacing="0">
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <thead>
                        <tr class="TableStyle-ref_2_col_table-Head-Header1">
                            <th class="TableStyle-ref_2_col_table-HeadE-Column1-Header1">Column Name</th>
                            <th class="TableStyle-ref_2_col_table-HeadD-Column1-Header1">Description</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">processId</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Process ID of the backend.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">database </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Name of the database where the backend is connected to.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">username </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Current user logged in the backend.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">clientIP </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">IP address of the client.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">clientPort </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">TCP port number the client is using to connect to the backend.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">state </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Current state of the backend.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">startTime </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Time when the current or last active query was started.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">currentTime </td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Current time.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">duration</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Equivalent to the process age based on the <strong>currentTime</strong> and <strong>StartTime</strong>.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">query</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Most recent query in the backend.</td>
                        </tr>
                    </tbody>
                </table>
                
</div>

### Replication

![Replication](https://docscdn.itrsgroup.com/geneos/images/integrations/postgresql-tr-replication-dataview.png)

<div class="table-container">
<table class="legacy-table" style="width: 100%;margin-left: 0;margin-right: auto;mc-table-style: url('../Resources/TableStyles/ref_2_col_table.css');" class="TableStyle-ref_2_col_table" cellspacing="0">
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <thead>
                        <tr class="TableStyle-ref_2_col_table-Head-Header1">
                            <th class="TableStyle-ref_2_col_table-HeadE-Column1-Header1">Column Name</th>
                            <th class="TableStyle-ref_2_col_table-HeadD-Column1-Header1">Description</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">host</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Configured host in the sampler.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">serverType</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Type of server being used.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">delay</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Equivalent to the result of calculated delay on the current time minus the time stamp of the last transaction replayed during recovery.</td>
                        </tr>
                    </tbody>
                </table>
                
</div>


