pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Devrim GUNDUZ <devrim@gunduz.org>
To: akuppachi@hss.hns.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Calculating size of the database tables
Date: Thu, 10 Jun 2004 13:55:54 +0300 (EEST)
Message-ID: <Pine.LNX.4.44.0406101354420.11293-100000@emo.org.tr> (raw)
In-Reply-To: <OFBB94A294.8DCDB8DE-ON65256EAF.0038BA46-65256EAF.003982D8@hss.hns.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

On Thu, 10 Jun 2004 akuppachi@hss.hns.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-----




view thread (4+ messages)  latest in thread

Message-ID: <Pine.LNX.4.44.0406101354420.11293-100000@emo.org.tr>
Permalink:  ../Pine.LNX.4.44.0406101354420.11293-100000@emo.org.tr/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0406101354420.11293-100000@emo.org.tr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: devrim@gunduz.org, akuppachi@hss.hns.com
  Subject: Re: Calculating size of the database tables
  In-Reply-To: <Pine.LNX.4.44.0406101354420.11293-100000@emo.org.tr>
  References: <OFBB94A294.8DCDB8DE-ON65256EAF.0038BA46-65256EAF.003982D8@hss.hns.com> <Pine.LNX.4.44.0406101354420.11293-100000@emo.org.tr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox