From: | Farhan Mughal <farhanhafeezmughal(at)yahoo(dot)co(dot)uk> |
---|---|
To: | son(at)raider(dot)co(dot)nz, pgsql-general(at)postgresql(dot)org |
Subject: | Re: how to know the current size of a database |
Date: | 2007-09-19 11:54:09 |
Message-ID: | 271649.58727.qm@web26309.mail.ukl.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>>I want to know about the size of my database. For example, I want to know
>>how many Mb of data for current myDatabase database in a postgres server.
>>How I can do that?
Try the following query:
select pg_size_pretty(pg_database_size('<DATABASE NAME>'));
--Farhan
----- Original Message ----
From: "son(at)raider(dot)co(dot)nz" <son(at)raider(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Sent: Wednesday, 19 September, 2007 3:36:02 PM
Subject: [GENERAL] how to know the current size of a database
Hello
I want to know about the size of my database. For example, I want to know
how many Mb of data for current myDatabase database in a postgres server.
How I can do that?
Thanks
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq
___________________________________________________________
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html
From | Date | Subject | |
---|---|---|---|
Next Message | tv | 2007-09-19 12:11:01 | Re: Is this good spec for a PostgreSQL server? |
Previous Message | Ow Mun Heng | 2007-09-19 11:31:29 | Re: keeping 3 tables in sync w/ each other |