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

Index cache hit rate SQL is incorrect #46

Open
Valve opened this issue Aug 3, 2015 · 0 comments
Open

Index cache hit rate SQL is incorrect #46

Valve opened this issue Aug 3, 2015 · 0 comments

Comments

@Valve
Copy link

Valve commented Aug 3, 2015

SELECT
sum(idx_blks_read) as idx_read,
sum(idx_blks_hit) as idx_hit,
sum(idx_blks_hit) - sum(idx_blks_read)) sum(idx_blks_hit) as ratio
FROM
pg_statio_user_indexes;

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