Egregoros

Signal feed

Timeline

Post

Remote status

Context

11
@pwm @pernia It is more complicated than that. pg_relation_size is the disk size for one fork of the table (main, init, vsm,...) pg_total_relation_size is all of those together, which is what \l+ in psql uses. To calculate estimated disk size after a delete without VACUUM FULL, you need to get the size of tuples in the table and do the same for indexes.