Re: Calculating database sizes using a script

Поиск
Список
Период
Сортировка
От Ireneusz Pluta
Тема Re: Calculating database sizes using a script
Дата
Msg-id 4BA8D5FE.4070208@wp.pl
обсуждение исходный текст
Ответ на Calculating database sizes using a script  ("Machiel Richards" <machielr@rdc.co.za>)
Список 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 по дате отправления:

Предыдущее
От: Sean Davis
Дата:
Сообщение: Re: Calculating database sizes using a script
Следующее
От: Krithinarayanan Ganesh Kumar
Дата:
Сообщение: Select query order