Current size of a PostgreSQL table (vs disk space used) I have a table that was recently VACUUMed, which means the disk space it takes is higher than its actual size (what pg_total_relation_size might report). Is there a way to tell how much space it actually takes / how much free space I have "in the table"?
There are two extensions that may be helpful


pgstattuple provides various functions to obtain tuple-level statistics,
pg_freespacemap  provides a means for examining the free space map (FSM).