Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Performance > Re: db size
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 17 Topic 3990 of 4206
Post > Topic >>

Re: db size

by wmoran@[EMAIL PROTECTED] (Bill Moran) Apr 14, 2008 at 09:12 AM

In response to Adrian Moisey <adrian@[EMAIL PROTECTED]
>:
> 
> We currently have a 16CPU 32GB box running postgres 8.2.
> 
> When I do a pg_dump with the following parameters "/usr/bin/pg_dump -E 
> UTF8 -F c -b" I get a file of 14GB in size.
> 
> But the database is 110GB in size on the disk.  Why the big difference 
> in size?  Does this have anything to do with performance?

In a dump, indexes are a single command.  In the actual database, the
indexes actually contain all the data the indexes require, which can
be substantially more in size than the command to create the index.

Additionally, a running database has a certain amount of wasted space.
If you're running vacuum on a proper schedule, this won't get out of
hand.  Read this page to understand better:
http://www.postgresql.org/docs/8.1/static/maintenance.html

And lastly, I expect that the pg_dump format is able to do more aggressive
compression than the running database.

-- 
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran@[EMAIL PROTECTED]
 412-422-3463x4023

-- 
Sent via pgsql-performance mailing list (pgsql-performance@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
 




 17 Posts in Topic:
db size
adrian@[EMAIL PROTECTED]   2008-04-14 08:29:56 
Re: db size
VGopal@[EMAIL PROTECTED]   2008-04-13 23:55:14 
Re: db size
craig@[EMAIL PROTECTED]   2008-04-14 16:37:54 
Re: db size
lists@[EMAIL PROTECTED]   2008-04-14 11:18:19 
Re: db size
adrian@[EMAIL PROTECTED]   2008-04-14 11:21:59 
Re: db size
lists@[EMAIL PROTECTED]   2008-04-14 11:33:54 
Re: db size
adrian@[EMAIL PROTECTED]   2008-04-14 11:44:12 
Re: db size
lists@[EMAIL PROTECTED]   2008-04-14 12:01:52 
Re: db size
adrian@[EMAIL PROTECTED]   2008-04-15 09:33:06 
Re: db size
craig@[EMAIL PROTECTED]   2008-04-14 18:40:39 
Re: db size
wmoran@[EMAIL PROTECTED]   2008-04-14 09:12:12 
Re: db size
wmoran@[EMAIL PROTECTED]   2008-04-15 07:12:22 
Re: db size
adrian@[EMAIL PROTECTED]   2008-04-17 08:28:42 
Re: db size
dev@[EMAIL PROTECTED] (R  2008-04-17 09:15:04 
Re: db size
adrian@[EMAIL PROTECTED]   2008-04-17 10:37:25 
Re: db size
adrian@[EMAIL PROTECTED]   2008-04-17 10:43:47 
Re: db size
dev@[EMAIL PROTECTED] (R  2008-04-17 09:52:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 18:27:17 CDT 2008.