pg_vacuum_analyze
Run VACUUM ANALYZE on a PostgreSQL table to clean dead tuples and update query statistics, blocked when read-only mode is enabled.
Instructions
Run VACUUM ANALYZE on a table to clean dead tuples and update database statistics. Blocked when that connection's own readOnly mode is enabled.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table": "<table>"
},
"name": "pg_vacuum_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table to vacuum/analyze | |
| schema | No | Schema to filter by. Defaults to the connection's defaultSchema (or 'public'). | |
| connectionId | No | Id of the postgres connection to use, from databases.config.yml. Optional when only one postgres connection is configured. |