Created
April 15, 2015 19:14
-
-
Save Whitespace/9d60a81c5739fa0caa18 to your computer and use it in GitHub Desktop.
Debugging Postgres
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT userid, dbid, left(query, 100), total_time, rows FROM pg_stat_statements WHERE total_time >= 1000 ORDER BY total_time DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment