pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Mario Weilguni <roadrunner6@gmx.at>
To: pgsql-performance@postgresql.org
Subject: Re: auto vacuum, not working?
Date: Fri, 13 Jan 2012 08:50:21 -0600
Message-ID: <4F0FF04D0200002500044778@gw.wicourts.gov> (raw)
In-Reply-To: <4F103F00.2080904@gmx.at>
References: <000301ccd1ec$167ab7d0$43702770$@devshock.com>
	<4F103F00.2080904@gmx.at>

Mario Weilguni <roadrunner6@gmx.at> wrote:
 
>> yesterday I delete about 200 million rows of a table
 
>> How can I release the space used by deleted rows?
>> Without block the table.
 
> vacuum does not reclaim space, just marks tuples dead. You need
> vacuum full.
 
VACUUM FULL will lock the table, blocking all other access, and it
can run for quite a while.  If you expect to be adding 200 million
new rows to the table in the foreseeable future, a regular VACUUM
(or autovacuum) will make that space available for reuse by that
table.  The space won't show in the file system; it will still be
allocated to the database but available for new rows.
 
-Kevin



view thread (4+ messages)  latest in thread

Message-ID: <4F0FF04D0200002500044778@gw.wicourts.gov>
Permalink:  ../4F0FF04D0200002500044778@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4F0FF04D0200002500044778@gw.wicourts.gov

 · 

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-performance@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, roadrunner6@gmx.at
  Subject: Re: auto vacuum, not working?
  In-Reply-To: <4F0FF04D0200002500044778@gw.wicourts.gov>
  References: <000301ccd1ec$167ab7d0$43702770$@devshock.com> <4F103F00.2080904@gmx.at> <4F0FF04D0200002500044778@gw.wicourts.gov>

* 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