pg_table_size ( regclass ) → bigintComputes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).
Functions / System Administration Functions
pg_table_size
Read the PG 18 manualComputes the disk space used by the specified table, excluding indexes (but including its TOAST table if any, free space map, and visibility map).
Reading PG 18current·documented in 18 of 27 versions, 9.0 to 20
Signatures & examples
Definition snapshot: b7bd9cda · English manual source