From: | Network Administrator <netadmin(at)vcsn(dot)com> |
---|---|
To: | Doug McNaught <doug(at)mcnaught(dot)org> |
Cc: | Chris Stokes <ChrisS(at)BassSoftware(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: database speed |
Date: | 2003-11-01 14:13:06 |
Message-ID: | 1067695985.3fa3bf7202492@webmail.vcsn.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Quoting Doug McNaught <doug(at)mcnaught(dot)org>:
> "Chris Stokes" <ChrisS(at)BassSoftware(dot)com> writes:
>
> > >The REINDEX is needed because VACUUM doesn't free up index space in
> > >some circumstances. 7.4 (currently in late beta) will fix this.
> >
> > Sorry Doug,
> >
> > Yes I am doing a vacuum regularly - in fact, when the speed of the
> > DB becomes slower, the vacuum takes longer and longer too.
> >
> > I have never used the REINDEX
> >
> > I wondered if it might be a row chaining issue of some sort ?!?
>
> The index bloat problem can occur when you have a an indexed SERIAL
> column whose value always increases, and you delete older rows on a
> regular basis. VACUUM recycles the row storage, but the index never
> shrinks.
>
> You can check: next time you get the speed/data growth problem, find
> which files in the database directory are growing, and use 'oid2name'
> (in the source tree under 'contrib') to find out what they are. Odds
> are they are indexes and REINDEXing their table will fix the problem.
>
> If you are running a recent version of PG (7.3 and maybe 7.2 as well)
> and have a very active database, you may also need to increase your
> free space map (FSM) size in postgresql.conf, and possibly run VACUUM
> FULL once a week or so.
>
> -Doug
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
Speaking of recent versions... In 7.4, doesn't the cluster command address this
problem?
--
Keith C. Perry
Director of Networks & Applications
VCSN, Inc.
http://vcsn.com
____________________________________
This email account is being host by:
VCSN, Inc : http://vcsn.com
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua D. Drake | 2003-11-01 16:21:57 | Re: regular backups - super user |
Previous Message | Network Administrator | 2003-11-01 13:56:54 | Re: ALTER Table (another) |