select pg_size_pretty(pg_table_size(‘test‘));
select pg_size_pretty(pg_database_size(‘david‘));
select pg_size_pretty(pg_indexes_size(‘test‘));