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

From Andreas Kretschmer
Subject Re: Disk space occupied by a table in postgresql
Date
Msg-id 20080809091514.GA7893@tux
Whole thread Raw
In response to Disk space occupied by a table in postgresql  (aravind chandu <avin_friends@yahoo.com>)
List pgsql-general
aravind chandu <avin_friends@yahoo.com> schrieb:

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

You can use the pg_relation_size() - function, described here:
http://www.postgresql.org/docs/8.3/interactive/functions-admin.html


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: Disk space occupied by a table in postgresql
Next
From: Glyn Astill
Date:
Subject: Re: Initdb problem on debian mips cobalt: Bus error