X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BCB2E53799 for ; Thu, 21 Apr 2005 20:54:09 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 22679-05 for ; Thu, 21 Apr 2005 23:54:06 +0000 (GMT) Received: from server07.icaen.uiowa.edu (server07.icaen.uiowa.edu [128.255.17.47]) by svr1.postgresql.org (Postfix) with ESMTP id 2E9ED53790 for ; Thu, 21 Apr 2005 20:54:05 -0300 (ADT) Received: from server11.icaen.uiowa.edu (server11.icaen.uiowa.edu [128.255.17.51]) by server07.icaen.uiowa.edu (8.13.3/8.12.9) with ESMTP id j3LNs75X000909; (envelope-from ) Thu, 21 Apr 2005 18:54:07 -0500 (CDT) Received: from [192.168.1.11] (12-215-118-172.client.mchsi.com [12.215.118.172]) (authenticated user=jfmeinel) by server11.icaen.uiowa.edu (8.13.2/smtp-serv-1.7) with ESMTP id j3LNs6QR018049 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256); (envelope-from ) Thu, 21 Apr 2005 18:54:07 -0500 (CDT) Message-ID: <42683D20.3060309@arbash-meinel.com> Date: Thu, 21 Apr 2005 18:54:08 -0500 From: John A Meinel User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bill Chandler , pgsql-performance@postgresql.org Subject: Re: Index bloat problem? References: <20050421225926.11937.qmail@web51404.mail.yahoo.com> In-Reply-To: <20050421225926.11937.qmail@web51404.mail.yahoo.com> X-Enigmail-Version: 0.91.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1023F54D0CE8B811DA7182C0" X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamav.icaen.uiowa.edu X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamav.icaen.uiowa.edu X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200504/601 X-Sequence-Number: 11998 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1023F54D0CE8B811DA7182C0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Bill Chandler wrote: >Mischa, > >Thanks. Yes, I understand that not having a large >enough max_fsm_pages is a problem and I think that it >is most likely the case for the client. What I wasn't >sure of was if the index bloat we're seeing is the >result of the "bleeding" you're talking about or >something else. > >If I deleted 75% of the rows but had a max_fsm_pages >setting that still exceeded the pages required (as >indicated in VACUUM output), would that solve my >indexing problem or would I still need to REINDEX >after such a purge? > >regards, > >Bill > > I don't believe VACUUM re-packs indexes. It just removes empty index pages. So if you have 1000 index pages all with 1 entry in them, vacuum cannot reclaim any pages. REINDEX re-packs the pages to 90% full. fsm just needs to hold enough pages that all requests have free space that can be used before your next vacuum. It is just a map letting postgres know where space is available for a new fill. John =:-> --------------enig1023F54D0CE8B811DA7182C0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCaD0gJdeBCYSNAAMRAhdVAJ0fzLP8hNEyuAis+Ncv/wxosR85KACcDgT6 4FhK7ITaWIJvdxOue5M4COU= =uN+X -----END PGP SIGNATURE----- --------------enig1023F54D0CE8B811DA7182C0--