explain_lock
Analyze a DDL statement to see the PostgreSQL lock it acquires and its impact on your database. Use this to evaluate migration safety before applying changes.
Instructions
Explain what PostgreSQL lock a DDL statement acquires and its impact.
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": {
"sql": "<sql>"
},
"name": "explain_lock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | A single DDL statement to analyze | |
| pg_version | No | Target PostgreSQL version (default: 17) |