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

Re: Index bloat problem?

From: "Jim C(dot) Nasby" <decibel(at)decibel(dot)org>
To: Dave Chapeskie <pgsql(at)ddm(dot)wox(dot)org>,pgsql-perform <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Index bloat problem?
Date: 2005-04-23 03:12:38
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
You would be interested in

On Thu, Apr 21, 2005 at 03:33:05PM -0400, Dave Chapeskie wrote:
> On Thu, Apr 21, 2005 at 11:28:43AM -0700, Josh Berkus wrote:
> > Michael,
> > 
> > > ....Every five minutes, DBCC INDEXDEFRAG will report to the user an
> > > estimated percentage completed. DBCC INDEXDEFRAG can be terminated at
> > > any point in the process, and *any completed work is retained.*"
> > 
> > Keen.  Sounds like something for our TODO list.
> > 
> > -- 
> > Josh Berkus
> > Aglio Database Solutions
> > San Francisco
> See
> for my thoughts on a non-blocking alternative to REINDEX.  I got no
> replies to that message. :-(
> I've almost got a working solution integrated in the backend that does
> correct WAL logging and everything.  (Writing the code to write and
> replay WAL logs for complicated operations can be very annoying!)
> For now I've gone with a syntax of:
>   REINDEX INDEX btree_index_name INCREMENTAL;
> (For now it's not a proper index AM (accessor method), instead the
> generic index code knows this is only supported for btrees and directly
> calls the btree_compress function.)
> It's not actually a REINDEX per-se in that it doesn't rebuild the whole
> index.  It holds brief exclusive locks on the index while it shuffles
> items around to pack the leaf pages fuller.  There were issues with the
> code I attached to the above message that have been resolved with the
> new code.  With respect to the numbers provided in that e-mail the new
> code also recycles more pages than before.
> Once I've finished it up I'll prepare and post a patch.
> -- 
> Dave Chapeskie
> OpenPGP Key ID: 0x3D2B6B34
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

Jim C. Nasby, Database Consultant               decibel(at)decibel(dot)org 
Give your computer some brain candy! Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

In response to

pgsql-performance by date

Next:From: Tom LaneDate: 2005-04-23 05:00:40
Subject: Re: Sort and index
Previous:From: Jim C. NasbyDate: 2005-04-23 03:09:20
Subject: Interesting numbers on a CREATE INDEX

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