Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 35D471337B6E for ; Fri, 1 Apr 2011 08:28:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 99749-02 for ; Fri, 1 Apr 2011 11:28:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qmta09.westchester.pa.mail.comcast.net (qmta09.westchester.pa.mail.comcast.net [76.96.62.96]) by mail.postgresql.org (Postfix) with ESMTP id A23D513364DE for ; Fri, 1 Apr 2011 08:28:32 -0300 (ADT) Received: from omta22.westchester.pa.mail.comcast.net ([76.96.62.73]) by qmta09.westchester.pa.mail.comcast.net with comcast id SB841g0061ap0As59BUZ8R; Fri, 01 Apr 2011 11:28:33 +0000 Received: from homie ([69.141.224.181]) by omta22.westchester.pa.mail.comcast.net with comcast id SBUZ1g00C3vSoyl3iBUZb4; Fri, 01 Apr 2011 11:28:33 +0000 Received: by homie (Postfix, from userid 1000) id F381B20C37; Fri, 1 Apr 2011 07:28:31 -0400 (EDT) From: Jerry Sievers To: Rajendra prasad Cc: pgsql-admin@postgresql.org Subject: Re: Index size growing References: Date: Fri, 01 Apr 2011 07:28:31 -0400 In-Reply-To: (Rajendra prasad's message of "Fri, 1 Apr 2011 07:31:40 +0530") Message-ID: <871v1mcisg.fsf@comcast.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.356 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=1.553, FREEMAIL_FROM=0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/8 X-Sequence-Number: 37189 Rajendra prasad writes: > Hi, > > I have 50 GB data base folder for postgres. Out of 50 GB 20 GB has > been occupied by 8 indexes of a single table by growing upto 2 GB > each. I googled and got the info that reindex will help brining back > the actual size of the index. But the disk has only 4 GB left . Due to > this, when i run reindex it is getting almost full. I don't know > exactly why it is growing like that during reindex. Due to this i am > not able to complete the reindex and see if i get back the disk > spacce. Please suggest me a good solution and the way that i am doing > is logical or not. Did you try reindexing each index individually? The old index files will be dropped in that case upon completion of each command if you are running autocommit. Less transient disk space demand by that strategy. Even more disk friendly is just to drop/create the indexes. Since you can't reindex without blocking anyway, I assume you are clear of concurrency issues to prevent using this advice (apps down and/or quiescent). -- Jerry Sievers Postgres DBA/Development Consulting e: gsievers19@comcast.net p: 305.321.1144