pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
To: Michael G. Martin <michael@vpmonline.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgres performance slowly gets worse over a month
Date: Fri, 26 Jul 2002 09:11:25 -0700 (PDT)
Message-ID: <20020726161125.95391.qmail@web20005.mail.yahoo.com> (raw)
In-Reply-To: <3D416D01.7000909@vpmonline.com>

Thanks, this is exactly what I was thinking. 

--- "Michael G. Martin" <michael@vpmonline.com> 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 You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com



view thread (31+ messages)  latest in thread

Message-ID: <20020726161125.95391.qmail@web20005.mail.yahoo.com>
Permalink:  ../20020726161125.95391.qmail@web20005.mail.yahoo.com/
Also on:    postgresql.org/message-id/20020726161125.95391.qmail@web20005.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: joshuadfranklin@yahoo.com, michael@vpmonline.com
  Subject: Re: Postgres performance slowly gets worse over a month
  In-Reply-To: <20020726161125.95391.qmail@web20005.mail.yahoo.com>
  References: <3D416D01.7000909@vpmonline.com> <20020726161125.95391.qmail@web20005.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox