Last active
June 5, 2016 09:52
-
-
Save arsham/3880a50da84f3b20946a to your computer and use it in GitHub Desktop.
Read enhanced activity stats for a particular table
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 relname as "table", | |
| seq_scan as "table scans", | |
| seq_tup_read as "tuples scanned", | |
| idx_scan as "index lookups", | |
| idx_tup_fetch as "tuples fetched via index" | |
| from pg_stat_user_tables | |
| where relname = 'TABLE_NAME'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment