Postgres DB Size Command

后端 未结 10 557
孤独总比滥情好
孤独总比滥情好 2021-01-29 17:09

What is the command to find the size of all the databases?

I am able to find the size of a specific database by using following command:

         


        
10条回答
  •  说谎
    说谎 (楼主)
    2021-01-29 17:41

    You can enter the following psql meta-command to get some details about a specified database, including its size:

    \l+ 
    

    And to get sizes of all databases (that you can connect to):

    \l+
    

提交回复
热议问题