Created
February 16, 2016 20:00
-
-
Save smalik/c8579cface91a1a90a80 to your computer and use it in GitHub Desktop.
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 anchor_table_schema, | |
| anchor_table_name, | |
| SUM(used_bytes) / ( 1024^3 ) AS used_compressed_gb | |
| FROM v_monitor.column_storage | |
| GROUP BY anchor_table_schema, | |
| anchor_table_name | |
| ORDER BY SUM(used_bytes) DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following query aggregates the column_storage data to the table level. You can add column_name for more granularity. Note that empty tables will not appear in this table.