Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: collect top 10 queries #5

Open
rishi-raj-jain opened this issue Jan 23, 2025 · 0 comments
Open

feature request: collect top 10 queries #5

rishi-raj-jain opened this issue Jan 23, 2025 · 0 comments

Comments

@rishi-raj-jain
Copy link
Contributor

Currently, one needs to run the command below to give us the top 10 queries:

SELECT  
    query,  
    total_exec_time AS total_time,  
    calls,  
    mean_exec_time AS avg_time_per_call  
FROM  
    pg_stat_statements  
ORDER BY  
    total_exec_time DESC  
LIMIT 10;

but is something we can add to the pg-prechecks script itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant