pg_refresh_materialized_view
Refresh a PostgreSQL materialized view to update its data. Supports concurrent refresh; blocked when connection readOnly mode is enabled.
Instructions
Refresh a materialized view. 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": {
"view": "<view>"
},
"name": "pg_refresh_materialized_view"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | Yes | Materialized view name | |
| schema | No | Schema to filter by. Defaults to the connection's defaultSchema (or 'public'). | |
| concurrently | No | Whether to refresh concurrently (requires unique index on the view) | |
| connectionId | No | Id of the postgres connection to use, from databases.config.yml. Optional when only one postgres connection is configured. |