pg_total_relation_size ( regclass ) → bigintComputes the total disk space used by the specified table, including all indexes and TOAST data. The result is equivalent to
pg_table_size + pg_indexes_size.Functions / System Administration Functions
Computes the total disk space used by the specified table, including all indexes and TOAST data.
Reading PG 18current·documented in 22 of 27 versions, 8.1 to 20
pg_total_relation_size ( regclass ) → bigintComputes the total disk space used by the specified table, including all indexes and TOAST data. The result is equivalent to
pg_table_size + pg_indexes_size.Definition snapshot: b7bd9cda · English manual source