How do you find the disk size of a Postgres / PostgreSQL table and its indexes

Posted by mmrobins on Stack Overflow See other posts from Stack Overflow or by mmrobins
Published on 2010-04-07T23:37:53Z Indexed on 2010/04/10 0:33 UTC
Read the original article Hit count: 707

Filed under:
|
|
|

I'm coming to Postgres from Oracle and looking for a way to find the table and index size in terms of bytes/MB/GB/etc, or even better the size for all tables. In Oracle I had a nasty long query that looked at user_lobs and user_segments to give back an answer. I assume in Postgres there's something I can use in the information_schema tables, but I'm not seeing where. Thanks in advance.

© Stack Overflow or respective owner

Related posts about postgres

Related posts about database