get_top_queries
Identify and analyze the slowest SQL queries by execution time using data from the 'pg_stat_statements' extension. Specify the number of queries and sort by total or mean execution time to optimize database performance.
Instructions
Reports the slowest SQL queries based on execution time, using data from the 'pg_stat_statements' extension.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
limit | No | Number of slow queries to return | |
sort_by | No | Sort criteria: 'total' for total execution time or 'mean' for mean execution time per call | mean |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from Postgres MCP
Related Tools
- @crystaldba/postgres-mcp
- @madhukarkumar/singlestore-mcp-server
- @crystaldba/postgres-mcp
- @nahmanmate/postgresql-mcp-server
- @crystaldba/postgres-mcp