I’m using the following code to determine the disk size of each table in my database in postgresql:
SELECT pg_size_pretty(pg_total_relation_size('"my_schema"."my_table"'));
I imagine that I should find the actual filenames of each table to get the exact disk size. Does anybody know how to determine the actual filenames at file system level?
Something like this:
I’m not 100% this will show the correct path if multiple tablespaces are involved.