| From: | akuppachi(at)hss(dot)hns(dot)com | 
|---|---|
| To: | Devrim GUNDUZ <devrim(at)gunduz(dot)org> | 
| Cc: | pgsql-admin(at)postgresql(dot)org, pgsql-admin-owner(at)postgresql(dot)org | 
| Subject: | Re: Calculating size of the database tables | 
| Date: | 2004-06-11 04:10:46 | 
| Message-ID: | OFA5657A73.F09E4B22-ON65256EB0.0016C4A5-65256EB0.0016FC38@hss.hns.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-admin | 
Hi,
Thanks for the response. However, the README.dbsize says that "When
computing the size of a table, it does not include TOAST or index disk
space." So dbsize would not be giving me the total diskspace occupied by my
tables, right ? I need to know the full disk space so i can do some hard
disk size calculations. Is there any other way to do this?
TIA,
Aparna.
                                                                           
             Devrim GUNDUZ                                                 
             <devrim(at)gunduz(dot)or                                             
             g>                                                         To 
             Sent by:                  akuppachi(at)hss(dot)hns(dot)com               
             pgsql-admin-owner                                          cc 
             @postgresql.org           pgsql-admin(at)postgresql(dot)org          
                                                                   Subject 
                                       Re: [ADMIN] Calculating size of the 
             06/10/04 04:25 PM         database tables                     
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
On Thu, 10 Jun 2004 akuppachi(at)hss(dot)hns(dot)com wrote:
<snip>
> I would appreciate any pointers to finding out the correct size occupied
by
> my database tables. Will the physical size of the "data" folder (as given
> by 'ls' command) give me the true size, or is there any other sql command
> that i can use to get this information?  I am using PostgreSQL, version
> 7.4.1 server libraries.
Please see contrib/dbsize. From README file:
"
This module contains two functions that report the size of a given
database or relation.  E.g.,
SELECT database_size('template1');
SELECT relation_size('pg_class');
These functions report the actual file system space.  Thus, users can
avoid digging through the details of the database directories.
"
Regards,
- --
Devrim GUNDUZ
devrim~gunduz.org
devrim.gunduz~linux.org.tr
                                     http://www.tdmsoft.com
                                     http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFAyD48tl86P3SPfQ4RAu+dAJ9L4sfyaR9VRAA9jATcHxB/p9+lLQCg4/3a
jlDyuD1rOxNrij7UqX5xuKs=
=B0Mo
-----END PGP SIGNATURE-----
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Richard Huxton | 2004-06-11 08:02:36 | Re: [GENERAL] out of memory error | 
| Previous Message | Tom Lane | 2004-06-11 03:27:10 | Re: vacuumdb: ERROR: Invalid UNICODE character sequence found |