pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Tory M Blue <tmblue@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Index bloat, reindex weekly, suggestions etc?
Date: Fri, 17 Oct 2008 12:53:58 -0500
Message-ID: <48F88AE6.EE98.0025.0@wicourts.gov> (raw)
In-Reply-To: <8a547c840810171048y27f1447ci2f125f19f1e0c5e@mail.gmail.com>
References: <8a547c840810170905m7323dbd8x90de7dd004abc7d4@mail.gmail.com>
	<48F8773F.EE98.0025.0@wicourts.gov>
	<8a547c840810170947p52075b0cmadc8c2060b38cfa4@mail.gmail.com>
	<48F88694.EE98.0025.0@wicourts.gov>
	<8a547c840810171048y27f1447ci2f125f19f1e0c5e@mail.gmail.com>

>>> "Tory M Blue" <tmblue@gmail.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



view thread (10+ messages)  latest in thread

Message-ID: <48F88AE6.EE98.0025.0@wicourts.gov>
Permalink:  ../48F88AE6.EE98.0025.0@wicourts.gov/
Also on:    postgresql.org/message-id/48F88AE6.EE98.0025.0@wicourts.gov

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, tmblue@gmail.com
  Subject: Re: Index bloat, reindex weekly, suggestions etc?
  In-Reply-To: <48F88AE6.EE98.0025.0@wicourts.gov>

* 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