-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
helper command for pg_top #1295
Conversation
scripts/pg_top.bash
Outdated
apt-get update | ||
apt-get install pgtop -y | ||
|
||
pg_top -p 5432 -h db -z root |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right now i get a role root does not exist
... not sure how to fix this.. i also tried postgres
as an arg, but that doesnt work either.
@mbeacom you may know what admin role i can use for this?
Codecov Report
@@ Coverage Diff @@
## master #1295 +/- ##
=======================================
Coverage 31.29% 31.29%
=======================================
Files 122 122
Lines 8521 8521
Branches 1116 1116
=======================================
Hits 2667 2667
Misses 5743 5743
Partials 111 111 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I modified the script to use the provided local environment variables and fall back to the local docker psql settings similar to the web app. pg_activity
was also added.
thanks! |
Description
the DB is slow sometimes (esp when loading an individual admin view of a page), so i wanted to use
pg_top
to debug it. this adds a helper command to installpg_top
on the web repo.Checklist
Affected core subsystem(s)
db
Testing
na/
Refers/Fixes
self