Table and index scan collector


Job details

Name: Table and index scan collector
Platform: Postgres
Category: Performance
Description: Shows locks held statistics.
Long description: This job collects table and index scan statistics for all schemas i all databases.
Version: 1.4
Default schedule: 10,40 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘postgres’]/.[hasengine=‘YES’ & newer_than_ninetwo = ‘1′]

Parameters

Name Default value Description
ignore_databases The list of databases to be ignored (separated by comma).

Job Summary

SELECT schemaname, relname, seq_scan, seq_tup_read, idx_scan, idx_tup_fetch FROM pg_stat_all_tables WHERE schemaname NOT IN ('pg_catalog','pg_toast');

Detailed Description

This job works specifically with databases that are not system templates and excludes certain defaults like the ‘rdsadmin’ database for services such as Amazon RDS. Additionally, it ignores databases listed in a configurable “ignore_databases” parameter to focus on the relevant databases.

Compatibility and Installation

The job filter ensures that this specific task is only executed on PostgreSQL instances, ensuring that there is no attempt to run irrelevant or incompatible database types, thereby preserving system resources and avoiding errors.

Report Generation and Presentation

The job includes a template for generating reports, which consist of detailed visuals and data tables:

Error Handling and Notifications

Throughout the job’s execution, various checks and balances are implemented to handle errors effectively. For instance, if the system does not find the necessary database table for collecting statistics, an appropriate error message and status are set, helping in troubleshooting and immediate rectification.

Overall, the “Table and Index Scan Collector” job within the dbWatch Control Center is a crucial tool for database administrators aiming to enhance the performance and efficiency of PostgreSQL databases through proactive monitoring and metric collection.