Как подсчитать занимаемое пространство для postgresql schema
select sum(pg_relation_size('schema_name.'||table_name))::bigint from information_schema.tables where table_schema='schema_name';
Oleg Shalnev |
избранное |
select sum(pg_relation_size('schema_name.'||table_name))::bigint from information_schema.tables where table_schema='schema_name';