Re: Calculating database sizes using a script - Mailing list pgsql-novice

From Ireneusz Pluta
Subject Re: Calculating database sizes using a script
Date
Msg-id 4BA8D5FE.4070208@wp.pl
Whole thread Raw
In response to Calculating database sizes using a script  ("Machiel Richards" <machielr@rdc.co.za>)
List pgsql-novice
Machiel Richards pisze:


                  Due to security
restrictionsI 
am not yet
able to use pgadmin / pgphpadmin and need to manually calculate this
using ‘SELECT
pg_size_pretty(pg_database_size(''));’
                  Is there a way of
running this in a script
for each database in the instance without having to manually type in
each
database name?


select
pg_size_pretty(pg_database_size(datname)), datname from
pg_catalog.pg_database ;

pgsql-novice by date:

Previous
From: Sean Davis
Date:
Subject: Re: Calculating database sizes using a script
Next
From: Krithinarayanan Ganesh Kumar
Date:
Subject: Select query order