pg_long_running_queries
Find PostgreSQL queries running longer than a given threshold in seconds to analyze and resolve performance bottlenecks.
Instructions
Find queries that have been running longer than a given threshold in seconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pg_long_running_queries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connectionId | No | Id of the postgres connection to use, from databases.config.yml. Optional when only one postgres connection is configured. | |
| min_duration_seconds | No | Minimum duration in seconds to consider a query as long-running (default: 30). |