๐
Get table size for all Redshift tables
The following query will return a list of results containing each table's name and the size of the table on disk in MB:
sql
SELECT name, size_mbFROM (SELECT tbl,count(*) AS size_mbFROM stv_blocklistGROUP BY tbl)LEFT JOIN (select distinct id,nameFROM stv_tbl_perm) ON id = tbl