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.
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). |