Runbook

Postgresql table not auto vacuumed incident

Back to Runbooks

Overview

This incident type refers to situations where a Postgresql table has not been vacuumed automatically, causing potential performance issues. Vacuuming is a process that frees up space and improves performance by removing dead rows and updating statistics. Failure to vacuum a table can result in degraded database performance and slow query execution times. This incident type requires immediate attention to prevent further performance degradation and optimize database performance.

Parameters

Debug

Check if vacuum is enabled on the specific table

Check if auto-vacuum is enabled on the specific table

Check the vacuum and analyze status of the specific table

Check the vacuum and analyze details of the specific table

Force an analyze on the specific table

The autovacuum process may not be enabled or configured properly in the database, causing tables to not be vacuumed automatically.

Repair

Force a vacuum on the specific table

Manually vacuum the affected table(s) to free up space and update statistics using the VACUUM command.

Adjust the automatic vacuum process settings to ensure that it runs more frequently or with different parameters that are more appropriate for your database workload.

Learn more

Related Runbooks

Check out these related runbooks to help you debug and resolve similar issues.