Chapter 49. SQL Statistics

PPEM allows viewing execution statistics of SQL statements. This information is provided by the pg_stat_statements and pgpro_stats extensions. For SQL statistics collection to work correctly, one of these extensions must be installed and configured in the instance.

To view SQL statistics:

  1. In the navigation panel, go to InfrastructureInstances.

  2. Click the name of the instance.

  3. In the navigation panel, go to SQL statistics.

The table with the following columns will be displayed:

To view the information about a statement, click Detailed next to it.

The displayed statistics are requested via the agent working with the instance. For this reason, the speed at which statistics are retrieved depends on two factors:

Given the cumulative nature of statistics, the resulting statistics snapshot can differ over time from the actual instance statistics.

Below the statistics, Query and Query plan blocks are displayed. You can perform the following actions in the top-right corner of these blocks: