Vaccum tables


Job details

Name: Vaccum tables
Platform: Postgres
Category: Maintenance
Description: dbWatch engine framework job (for internal use only). Used for patching or upgrading of dbWatch engine framework.
Long description: This job runs VACUUM statement on every database and reclaims storage occupied by dead tuples. It’s necessary to do VACUUM periodically, especially on frequently-updated tables.
Version: 2.2
Default schedule: 10 6 * *
Requires engine install: No
Compatibility tag: .[type=‘instance’ & databasetype=‘postgres’]/.[newer_than_ninetwo = ‘1′]

Parameters

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

Job Summary

VACUUM;

Details of Execution

Database Execution Process

  1. A list of databases to be ignored during the vacuum process is maintained.
  2. The system queries all databases skipping template databases and any that match the names in the ignore list.
  3. For each database that is not on the ignore list, the VACUUM command is executed.
  4. This job keeps track of which databases have been vacuumed and provides a message output summarizing the activity.
  5. Any errors encountered during the process are caught and reported as part of the job’s status.

Reporting and Output

Configuration and Compatibility

Job Properties

Property Name Description
Name Vacuum garbage collector
Version 2.2
Group com.dbwatch.job
Artifact ID postgres_job_noschema_vacuum_tables
Category Maintenance
Entity Type Scheduled Task
Installability Express Install
Default Schedule Every day at 6:10 AM

With its specific design tailored for PostgreSQL environments, this monitoring job plays a crucial role in ensuring that the database system remains efficient and does not suffer from performance degradation due to bloated storage.