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 t.name, count(tbl) / 1000.0 as gb | |
from | |
( | |
select distinct datname, id, name | |
from stv_tbl_perm | |
join pg_database | |
on pg_database.oid = db_id | |
) t | |
join stv_blocklist | |
on tbl = t.id |