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 6 of 17 Topic 3990 of 4424
Post > Topic >>

Re: db size

by lists@[EMAIL PROTECTED] (PFC) Apr 14, 2008 at 11:33 AM

>
>>     If you suspect your tables or indexes are bloated, restore your=20=
=20
>> dump to a test box.
>>     Use fsync=3Doff during restore, you don't care about integrity on
th=
e=20=20
>> test box.
>>     This will avoid slowing down your production database.
>>     Then look at the size of the restored database.
>>     If it is much smaller than your production database, then you have=
=20=20
>> bloat.
>
> I have done that, and I get the following:
>
> the live one is 113G
> the restored one is 78G

	Ah.
	Good news for you is that you know that you can do something ;)

	Now, is the bloat in the tables (which tables ?) or in the indexes
(which=
=20=20
indexes ?), or in the toast tables perhaps, or in the system catalogs
or=20=
=20
all of the above ? Or perhaps there is a long-forgotten process that
got=20=
=20
zombified while holding a huge temp table ? (not very likely, but
who=20=20
knows).
	Use pg_relation_size() and its friends to get an idea of the size
of=20=20
stuff.
	Perhaps you have 1 extremely bloated table or index, or perhaps=20=20
everything is bloated.
	The solution to your problem depends on which case you have.

--=20
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 Mon Dec 1 8:42:02 CST 2008.