| From: | Tom Robinson <tom(dot)robinson(at)paradise(dot)net(dot)nz> |
|---|---|
| To: | pgsql-novice(at)postgresql(dot)org |
| Subject: | Re: How to find size of a table |
| Date: | 2001-08-19 19:16:21 |
| Message-ID: | 20010820071649-r01010700-57a54948-0910-0108@203.79.95.108 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
Jason replied to me off-list:
>>How do I display the size (space used on the disk) of a table or
>>database?
>The actual tables and index files are located in the
>PGSQL_HOME/data/base directory, in separate directories for each
>database you create.
>
>I am unaware of any internal Postgres function which will do this,
>there maybe something in the newer versions perhaps.
I took a snapshot of the directories under base, used the createdb command, and the new directory which appeared was the new database.
I then used the Unix du command to see how much space it used.
Cheers
--
He is a fool who has forgotten what became of his ancestry seven generations before him and who does not care what will become of his progeny seven generations after him -- Kazakh Proverb
| From | Date | Subject | |
|---|---|---|---|
| Next Message | macky | 2001-08-20 04:05:04 | Altering pg_conndefaults |
| Previous Message | travep | 2001-08-19 18:09:34 | Re: Queries seem to lock up shell session |