check size of table postgres code example
Example 1: postgres check size table
SELECT pg_size_pretty( pg_total_relation_size('tablename') );
Example 2: check size of table sql
SELECT pg_size_pretty( pg_total_relation_size('tablename') );
(postgres)