Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group