dbTalk Databases Forums  

table space keeps growing.

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss table space keeps growing. in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Guerin
 
Posts: n/a

Default table space keeps growing. - 04-07-2004 , 01:55 PM






My database keeps growing, although the size of the data remains almost
constant. The database is currently using 140GB, although I estimated
the actual size to be around 40-50GB. Vacuum's are run twice a day, as
the superuser, after the large updates and deletes complete. I
expected the size to level off but it keeps growing, what am I doing
wrong? For instance one of my tables started with 546,050 pages and
has grown to 2,290,469 pages although the number of rows are roughly the
same. Does vacuum free sparse space on a page or just the free space at
the end? Also, I'm just running vacuum verbose analyze and not running
vacuum full. Vacuum full does reclaim the space, but it also keeps the
table locked most of the day.

-michael


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
  #2  
Old   
Bruno Wolff III
 
Posts: n/a

Default Re: table space keeps growing. - 04-07-2004 , 02:59 PM






On Wed, Apr 07, 2004 at 14:55:12 -0400,
Michael Guerin <guerin (AT) rentec (DOT) com> wrote:
Quote:
My database keeps growing, although the size of the data remains almost
constant. The database is currently using 140GB, although I estimated
the actual size to be around 40-50GB. Vacuum's are run twice a day, as
the superuser, after the large updates and deletes complete. I
expected the size to level off but it keeps growing, what am I doing
wrong? For instance one of my tables started with 546,050 pages and
has grown to 2,290,469 pages although the number of rows are roughly the
same. Does vacuum free sparse space on a page or just the free space at
the end? Also, I'm just running vacuum verbose analyze and not running
vacuum full. Vacuum full does reclaim the space, but it also keeps the
table locked most of the day.
A plain vacuum only can reclaim space at the end. It is possible that the
combination of how frequently you vacuum and your FSM setting isn't high
enough to cover the amount of deleted tuples you are generating.

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.