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

Undo enabling query stats #45

Closed
netinstructions opened this issue Feb 15, 2016 · 3 comments
Closed

Undo enabling query stats #45

netinstructions opened this issue Feb 15, 2016 · 3 comments

Comments

@netinstructions
Copy link

I tried to enable query stats from the dashboard, but after clicking the button got a 500 server error. I checked the logs and saw ERROR: pg_stat_statements must be loaded via shared_preload_libraries. I decided I don't want to troubleshoot the issue as outlined in the help guide and would rather just turn off query stats.

The problem is I have no idea how to do this. The server replies with a 500 internal server error. I can't access the dashboard at all. I tried uninstalling and re-installing pghero to no avail. Where's the undo button?

@netinstructions
Copy link
Author

I figured it out. I had to run DROP EXTENSION pg_stat_statements; on the table it was created on. I was not running it on the correct table, hence the confusion.

An undo button performing this operation would be friendlier than a 500 internal server error though :)

@ankane
Copy link
Owner

ankane commented Feb 16, 2016

Thanks for following up @netinstructions. Feel free to submit a pull request for this.

@pathikrit
Copy link

@netinstructions : I have the same problem. Where did you find the logs?

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