pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
To: eduardoa@mirthcorp.com
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #8612: Truncate did not release disk space
Date: Fri, 22 Nov 2013 20:12:26 +0100
Message-ID: <528FAC9A.6010801@kaltenbrunner.cc> (raw)
In-Reply-To: <E1VjDYO-0003Cl-Vo@wrigleys.postgresql.org>
References: <E1VjDYO-0003Cl-Vo@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (5+ messages)  latest in thread

Message-ID: <528FAC9A.6010801@kaltenbrunner.cc>
Permalink:  ../528FAC9A.6010801@kaltenbrunner.cc/
Also on:    postgresql.org/message-id/528FAC9A.6010801@kaltenbrunner.cc

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: stefan@kaltenbrunner.cc, eduardoa@mirthcorp.com
  Subject: Re: BUG #8612: Truncate did not release disk space
  In-Reply-To: <528FAC9A.6010801@kaltenbrunner.cc>
  References: <E1VjDYO-0003Cl-Vo@wrigleys.postgresql.org> <528FAC9A.6010801@kaltenbrunner.cc>

* 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