pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hannu Krosing <hannu@tm.ee>
To: Jaruwan Laongmal <jaruwan@gits.net.th>
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: [HACKERS] why the DB file size does not reduce when 'delete' the data in DB?
Date: Fri, 02 Mar 2001 17:03:05 +0200
Message-ID: <3A9FB629.4080601@tm.ee> (raw)
References: <000f01c0a315$ff81a0e0$6d9a96cb@ntl>

Jaruwan Laongmal wrote:

> I had deleted a very large number of records out of my SQL table in order to
> decrease the harddisk space.  But after I use command 'ls -l
> /usr/local/pgsql/data/base/', it is found that the size of concerning files
> do not reduce due to the effect of 'delete' SQL command.  What should I do
> if I would like to decrease the harddisk space?

Run the command VACUUM;

This will do the actual removal of deleted records. DELETE just marks 
them as deleted

> I am looking forward to your response.  Thank you very much for any help.
> -
> Jaruwan





view thread (12+ messages)  latest in thread

Message-ID: <3A9FB629.4080601@tm.ee>
Permalink:  ../3A9FB629.4080601@tm.ee/
Also on:    postgresql.org/message-id/3A9FB629.4080601@tm.ee

 · 

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-sql@postgresql.org
  Cc: hannu@tm.ee, jaruwan@gits.net.th, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] why the DB file size does not reduce when 'delete' the data in DB?
  In-Reply-To: <3A9FB629.4080601@tm.ee>
  References: <000f01c0a315$ff81a0e0$6d9a96cb@ntl> <3A9FB629.4080601@tm.ee>

* 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