Re: Disk space occupied by a table in postgresql - Mailing list pgsql-general

From Fouad Zaryouh
Subject Re: Disk space occupied by a table in postgresql
Date
Msg-id e6a067860808090159v299004e9v1cebfdec9da82d24@mail.gmail.com
Whole thread Raw
In response to Disk space occupied by a table in postgresql  (aravind chandu <avin_friends@yahoo.com>)
Responses Re: Disk space occupied by a table in postgresql  (Reid Thompson <Reid.Thompson@ateb.com>)
List 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

http://www.flipcore.com




On Sat, Aug 9, 2008 at 3:18 AM, aravind chandu <avin_friends@yahoo.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.


pgsql-general by date:

Previous
From: aravind chandu
Date:
Subject: Disk space occupied by a table in postgresql
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: Disk space occupied by a table in postgresql