How to find size of Database and Table in PostgreSQL

In this post, I show you some important script to find size of database , table and index.


Script 1 : Find a total size of the database.

Script 2: Find a total size of the table with an index.

Script 3: Find a total size of the table without an index.

Script 4: Find a total size of the index.

Script 5: Find a total number of rows in a table.

Script 6 : Find all the table size in the current database.

Script 7 : Find all the table and index size in the current database.

Other Related Articles:

PostgreSQL XML Type:

PostgreSQL Cross Database Query:

PostgreSQL Custom Paging using LIMIT and OFFSET

 


Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.

I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.

More from dbrnd.com

Leave a Reply

3 Comments on "How to find size of Database and Table in PostgreSQL"

Notify of
avatar
Sort by:   newest | oldest | most voted
a/c Repair Moorpark
Guest

Hey very interesting blog!

Sourav
Guest

Nice Post

wpDiscuz