Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vjw9j-0001Dk-EF for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Nov 2013 19:12:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vjw9i-0004ST-83 for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Nov 2013 19:12:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vjw9a-0004Hb-MN for pgsql-bugs@postgresql.org; Fri, 22 Nov 2013 19:12:34 +0000 Received: from cronos.madness.at ([2a02:16a8:dc41::10]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vjw9Y-0002uR-Ac for pgsql-bugs@postgresql.org; Fri, 22 Nov 2013 19:12:34 +0000 Received: from mastermind.kaltenbrunner.cc ([2001:470:7a2d::22]) by cronos.madness.at with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Vjw9U-0007LD-0E; Fri, 22 Nov 2013 20:12:30 +0100 Message-ID: <528FAC9A.6010801@kaltenbrunner.cc> Date: Fri, 22 Nov 2013 20:12:26 +0100 From: Stefan Kaltenbrunner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: eduardoa@mirthcorp.com, pgsql-bugs@postgresql.org Subject: Re: BUG #8612: Truncate did not release disk space References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 11/20/2013 08:35 PM, eduardoa@mirthcorp.com wrote: > The following bug has been logged on the website: > > Bug reference: 8612 > Logged by: Eduardo Armendariz > Email address: eduardoa@mirthcorp.com > PostgreSQL version: 9.0.13 > Operating system: CentOS > Description: > > Ran out of disk space and postgres shut down. Recovered enough disk space > for database to be operational. Truncated the largest table in the database, > the message table. This table had over 600gb of data. The result of the > truncate was that only about 200gb of the data was actually released to the > OS. sure that no other backend was/is actually still a file-handle referenced? That open filehandle will prevent the OS from showing up the freed space on the filesystem and can happen if you have backends still running that once referenced the table now truncated and have not done any work since you did the truncate (like a large connection pool or idle client connections, maybe an open psql session or something like that). Stefan -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs