pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Francisco Reyes <lists@stringsutils.com>
To: choksi <choksi.dhaval@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Database size
Date: Fri, 15 Jun 2007 13:15:37 -0400
Message-ID: <cone.1181927737.662704.53974.5001@35st.simplicato.com> (raw)
References: <1181290934.160823.161630@w5g2000hsg.googlegroups.com>

choksi writes:

> I had a database which uses to hold some 50 Mill records and disk
> space used was 103 GB. I deleted around 34 Mill records but still the
> disk size is same. Can some on please shed some light on this.

When records are deleted they are only marked in the database.
When you run vacuum in the database that space will be marked so new data 
can use the space.

To lower the space used you need to run "vacuum full".
That however can take a while and I think it will lock the database for 
some operations. 



view thread (4+ messages)  latest in thread

Message-ID: <cone.1181927737.662704.53974.5001@35st.simplicato.com>
Permalink:  ../cone.1181927737.662704.53974.5001@35st.simplicato.com/
Also on:    postgresql.org/message-id/cone.1181927737.662704.53974.5001@35st.simplicato.com

 · 

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: lists@stringsutils.com, choksi.dhaval@gmail.com
  Subject: Re: Database size
  In-Reply-To: <cone.1181927737.662704.53974.5001@35st.simplicato.com>
  References: <1181290934.160823.161630@w5g2000hsg.googlegroups.com> <cone.1181927737.662704.53974.5001@35st.simplicato.com>

* 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