Created
May 18, 2018 19:16
-
-
Save ericjsilva/5bdfb42ec256d38ea268d3c093c35e7b to your computer and use it in GitHub Desktop.
Query Free Space in Redshift
This file contains 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 | |
SUM(capacity) / 1024 as capacity_gbytes, | |
SUM(used) / 1024 as used_gbytes, | |
(SUM(capacity) - SUM(used)) / 1024 as free_gbytes | |
FROM | |
stv_partitions WHERE part_begin = 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment