Re: Index bloat, reindex weekly, suggestions etc?

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Tory M Blue" <tmblue(at)gmail(dot)com>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Index bloat, reindex weekly, suggestions etc?
Date: 2008-10-17 17:53:58
Message-ID: 48F88AE6.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

>>> "Tory M Blue" <tmblue(at)gmail(dot)com> wrote:

> psql $DB -c 'vacuum analyze verbose'""

That's fine; you're not using the FULL option.

> every night before I dump

Another thing that could cause bloat is a long-running transaction.
Check for that. If your database is being updated during a pg_dump or
pg_dumpall, that would count as a long-running transaction. You might
possibly want to look at going to the PITR backup technique for your
regular backups.

-Kevin

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Smith 2008-10-17 18:15:51 Re: Annoying Reply-To
Previous Message Tory M Blue 2008-10-17 17:48:07 Re: Index bloat, reindex weekly, suggestions etc?