| From: | "Fouad Zaryouh" <fouad(dot)zaryouh(at)gmail(dot)com> |
|---|---|
| To: | "aravind chandu" <avin_friends(at)yahoo(dot)com> |
| Cc: | "postgresql Forums" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Disk space occupied by a table in postgresql |
| Date: | 2008-08-09 08:59:16 |
| Message-ID: | e6a067860808090159v299004e9v1cebfdec9da82d24@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi Aravind,
Run the following query
SELECT relname, reltuples, relpages * 8 / 1024 AS "MB" FROM pg_class ORDER
BY relpages DESC;
relname = table name
relpages = size in MB
reltuples = number of rows.
Hope this help.
Fouad Zaryouh
On Sat, Aug 9, 2008 at 3:18 AM, aravind chandu <avin_friends(at)yahoo(dot)com>wrote:
> Hello,
>
> I installed postgresql on linux system, I create a
> table and inserted a large data into the table what I would like to know is
> how to calculate the disk space occupied by the table .Is there any
> procedure to find it out or simply a command .Please give me some
> suggestion.
>
>
> Thank You,
> Avin.
>
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andreas Kretschmer | 2008-08-09 09:15:14 | Re: Disk space occupied by a table in postgresql |
| Previous Message | aravind chandu | 2008-08-09 07:18:46 | Disk space occupied by a table in postgresql |