To get the size of a specific table, you use the pg_relation_size()
function which returns the size of a specific table in bytes.
For example, you can get the size of the actor table in the dvdrental sample database as follows:
SELECT pg_relation_size('TableName');
pg_relation_size
------------------
16384