Re: Cript for DISK SPACE USE psql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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.



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux