TECHIES WORLD

For Techs.... Techniques.... Technologies....

BashLinux

How to check database size in PostgreSQL

We can user the following PostgreSQL query to get the database size.

#\l+ 

This will printout the size of all databases.

If it required to print the size of a single database only,

#\l+ <database-name>

Here we need to replace with the corresponding name.

That's all…

Leave a Reply