top_queries
List top PostgreSQL queries by total_time, mean_time, calls, rows, or I/O to identify performance bottlenecks and troubleshoot slow-running statements.
Instructions
[READ] Top statements from pg_stat_statements by a whitelisted metric.
Args:
order_by: One of total_time, mean_time, calls, rows, io.
limit: Number of statements to return (1..200, default 20).
target: Target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| target | No | ||
| order_by | No | total_time |