pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Bala Murugan <b2m@a-cti.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5774: VACCUM & REINDEX kills production environement
Date: Sun, 28 Nov 2010 17:23:31 +0100
Message-ID: <20101128162331.GA11758@depesz.com> (raw)
In-Reply-To: <201011280725.oAS7PqUN022602@wwwmaster.postgresql.org>
References: <201011280725.oAS7PqUN022602@wwwmaster.postgresql.org>

On Sun, Nov 28, 2010 at 07:25:52AM +0000, Bala Murugan wrote:
> 
> The following bug has been logged online:
> 
> Bug reference:      5774
> Logged by:          Bala Murugan
> Email address:      b2m@a-cti.com
> PostgreSQL version: 8.3.7
> Operating system:   openSUSE 10.3 (X86-64) - Kernel \r (\l).
> Description:        VACCUM & REINDEX kills production environement
> Details: 
> 
> Iam running postgres 8.3 version for more than 2 yrs on Amazon EC2 Instance,
> in recent days Vaccum and reindex make the application down for more than
> 2hrs. I am not sure this because of my configuration or postgres.

is it normal vacuum?

or are you using "vacuum full"?

generally - voth vacuum full and reindex do lock tables for exclusive
access.

that's why you generally don't use them!

vacuum full is especially frowned upon.

as for reindex - if you *really* need it (are you sure? what makes you
think you need it), then there are ways to do reindex without actually
using "reindex" command, which are mostly transparent for users, but you
should check if you really need to run reindex at all.

Best regards,

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007



view thread (8+ messages)  latest in thread

Message-ID: <20101128162331.GA11758@depesz.com>
Permalink:  ../20101128162331.GA11758@depesz.com/
Also on:    postgresql.org/message-id/20101128162331.GA11758@depesz.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-bugs@postgresql.org
  Cc: depesz@depesz.com, b2m@a-cti.com
  Subject: Re: BUG #5774: VACCUM & REINDEX kills production environement
  In-Reply-To: <20101128162331.GA11758@depesz.com>
  References: <201011280725.oAS7PqUN022602@wwwmaster.postgresql.org> <20101128162331.GA11758@depesz.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