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

Explain how to enable query stats #7

Closed
manuelmeurer opened this issue Aug 7, 2014 · 3 comments
Closed

Explain how to enable query stats #7

manuelmeurer opened this issue Aug 7, 2014 · 3 comments

Comments

@manuelmeurer
Copy link
Contributor

Great gem! 👏

I installed it and it told me query stats are not enabled and, upon trying to enable them, "The database user does not have permission to enable query stats"
Could you quickly explain in the README what the query stats are and how to enable them? Are they same as the Statistics Collector?
A bit more info would be great for Postgres newbies like me.

Also, it might make sense to mention in the README that the performance of the app is not affected by enabling PGHero (I assume it's not 😄).

@tmikoss
Copy link

tmikoss commented Aug 7, 2014

Here's how you enable query stat statements - http://www.postgresql.org/docs/9.3/static/pgstatstatements.html

As for performance impact, postgres docs state that enabling pg_stat_statements will require additional memory for database.

@fbandrey
Copy link

fbandrey commented Aug 7, 2014

@manuelmeurer you may enable it manually (under "postgres" user, for example) by running:

CREATE extension pg_stat_statements;

I wrote a short wiki here: https://github.com/ankane/pghero/wiki/How-to-manually-enable-query-stats

@manuelmeurer
Copy link
Contributor Author

Thanks guys! I'll try to get it running and prepare a PR for the README since I think this should be mentioned there.

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

3 participants