pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bill Chandler <billybobc1210@yahoo.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-perform <pgsql-performance@postgresql.org>
Subject: Re: Index bloat problem?
Date: Thu, 21 Apr 2005 10:38:55 -0700 (PDT)
Message-ID: <20050421173855.76286.qmail@web51410.mail.yahoo.com> (raw)


--- Josh Berkus <josh@agliodbs.com> wrote:
> Bill,
> 
> > What about if an out-of-the-ordinary number of
> rows
> > were deleted (say 75% of rows in the table, as
> opposed
> > to normal 5%) followed by a 'VACUUM ANALYZE'?
>  Could
> > things get out of whack because of that situation?
> 
> Yes.  You'd want to run REINDEX after and event like
> that.  As you should now.
> 
> -- 
> Josh Berkus
> Aglio Database Solutions
> San Francisco
> 

Thank you.  Though I must say, that is very
discouraging.  REINDEX is a costly operation, timewise
and due to the fact that it locks out other processes
from proceeding.  Updates are constantly coming in and
queries are occurring continuously.  A REINDEX could
potentially bring the whole thing to a halt.

Honestly, this seems like an inordinate amount of
babysitting for a production application.  I'm not
sure if the client will be willing to accept it.  

Admittedly my knowledge of the inner workings of an
RDBMS is limited, but could somebody explain to me why
this would be so?  If you delete a bunch of rows why
doesn't the index get updated at the same time?  Is
this a common issue among all RDBMSs or is it
something that is PostgreSQL specific?  Is there any
way around it?

thanks,

Bill

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



view thread (32+ messages)  latest in thread

Message-ID: <20050421173855.76286.qmail@web51410.mail.yahoo.com>
Permalink:  ../20050421173855.76286.qmail@web51410.mail.yahoo.com/
Also on:    postgresql.org/message-id/20050421173855.76286.qmail@web51410.mail.yahoo.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: billybobc1210@yahoo.com, josh@agliodbs.com
  Subject: Re: Index bloat problem?
  In-Reply-To: <20050421173855.76286.qmail@web51410.mail.yahoo.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