From: adey <adey11@gmail.com>
To: Trula Thomas <trulathomas@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Cript for DISK SPACE USE psql
Date: Wed, 18 Apr 2007 16:19:28 +1200
Message-ID: <1c66bda80704172119x70d3c12fjf3760064ebe766d5@mail.gmail.com> (raw)
In-Reply-To: <980032.39869.qm@web56912.mail.re3.yahoo.com>
References: <980032.39869.qm@web56912.mail.re3.yahoo.com>
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.<http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3...;
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: adey11@gmail.com, trulathomas@yahoo.com
Subject: Re: Cript for DISK SPACE USE psql
In-Reply-To: <1c66bda80704172119x70d3c12fjf3760064ebe766d5@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox