Received: from oscar.eng.cv.net (oscar.eng.cv.net [167.206.9.141]) by postgresql.org (Postfix) with ESMTP id DC747474E50 for ; Fri, 26 Jul 2002 13:41:39 -0400 (EDT) Received: from oscar.eng.cv.net (localhost [127.0.0.1]) by oscar.eng.cv.net (8.12.5/8.12.5) with ESMTP id g6QHYGX0018318 for ; Fri, 26 Jul 2002 13:34:16 -0400 (EDT) (envelope-from marc@oscar.eng.cv.net) Received: (from marc@localhost) by oscar.eng.cv.net (8.12.5/8.12.5/Submit) id g6QHYGDW018317 for pgsql-admin@postgresql.org; Fri, 26 Jul 2002 13:34:16 -0400 (EDT) Date: Fri, 26 Jul 2002 13:34:16 -0400 From: Marc Spitzer To: pgsql-admin@postgresql.org Subject: Re: Postgres performance slowly gets worse over a month Message-ID: <20020726133416.B16887@oscar.eng.cv.net> Mail-Followup-To: pgsql-admin@postgresql.org References: <3D416D01.7000909@vpmonline.com> <20020726161125.95391.qmail@web20005.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020726161125.95391.qmail@web20005.mail.yahoo.com>; from joshuadfranklin@yahoo.com on Fri, Jul 26, 2002 at 09:11:25AM -0700 X-Archive-Number: 200207/379 X-Sequence-Number: 5063 On Fri, Jul 26, 2002 at 09:11:25AM -0700, Joshua Daniel Franklin wrote: > Thanks, this is exactly what I was thinking. > > --- "Michael G. Martin" wrote: > > You then remove a bunch of old tuples. Space is still X+Y. You now > > have 2 basic options: > > > > 1. Run a vacuum full -- this locks the entier table, and de-fragments > > all unused space, so space is now back to X. Table will grow incremently > > by Y over the next 6 months again. > > 2. Run a lazy vacuum-- no lock, no de-fragment, space is still X+Y. > > Assuming max_fsm_pages was large enough to hold all the changed pages, > > over the next 6 months, the space remains fixed at about X+Y. You are > > now re-using the unused table space. > > > > Either solution will work. If you really want to cut disk space, choose > > 1. If you want to keep the space at about it optimal size and avoid any > > downtime, choose 2. > > > > --Michael > Do not forget to reindex the db after the delete, index's do not manage them selves(if I remember correctly). The index will continue to grow until it eats your file system, as it did with me. Also if you do not reindex regulary it can take a looong time to do, much like vacuum. Also bigger indexes mean slower queries. marc > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - Feel better, live better > http://health.yahoo.com > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly