Обсуждение: Cript for DISK SPACE USE psql

Поиск
Список
Период
Сортировка

Cript for DISK SPACE USE psql

От
Trula Thomas
Дата:
Hello, would anyone know the cript for disk space use (psql)? Please help.
Thank you
Trula


Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.

Re: Cript for DISK SPACE USE psql

От
Ashish Karalkar
Дата:
You can use combinations of
Database Object Size Functions to create the script.
Hope this will help
with regards
 
Ashish...


Trula Thomas <trulathomas@yahoo.com> wrote:
Hello, would anyone know the cript for disk space use (psql)? Please help.
Thank you
Trula

Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.


Check out what you're missing if you're not on Yahoo! Messenger

Re: Cript for DISK SPACE USE psql

От
adey
Дата:
Try this:-
 
-- Query returns size of a database calculated from the no. 8k pages allocated to tables
SELECT
-- *
 sum( relpages*8/1024 ) as MB
FROM
 pg_class
WHERE
-- relname != ''
-- relname = 'document'
 relnamespace = '2200'

 
On 4/16/07, Trula Thomas <trulathomas@yahoo.com> wrote:
Hello, would anyone know the cript for disk space use (psql)? Please help.
Thank you
Trula


Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.