By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,611 Members | 891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,611 IT Pros & Developers. It's quick & easy.

db_space

P: n/a
Is there a way to get the size of your PostgreSQL database using sql?
I need this for an inventory program.

Thanks!
Troy Campano
Liberty Mutual
Infrastructure Software Engineering
Database Management
desk: (603) 245 4092
cell: (603) 219 5539
tr**********@libertymutual.com

Nov 22 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
Campano, Troy wrote:
Is there a way to get the size of your PostgreSQL database using sql?
I need this for an inventory program.


No, not db size. You have to use 'du'. See the manual section
"Managing Disk Space" in the admin section.

--
Bruce Momjian | http://candle.pha.pa.us
pg***@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 22 '05 #2

P: n/a
What does the contrib dbsize give you then?
Is that like some allocated size as apposed to used size?

thank you!
On Mon, 2004-02-09 at 17:30, Bruce Momjian wrote:
Campano, Troy wrote:
Is there a way to get the size of your PostgreSQL database using sql?
I need this for an inventory program.


No, not db size. You have to use 'du'. See the manual section
"Managing Disk Space" in the admin section.

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.