How measure table total pages (block) count? would be this correct way? :
SELECT pg_table_size('my_table'::regclass) /current_setting('block_size')::BIGINT;