Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] why the DB file size does not reduce when 'delete' the data in DB?

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: Jaruwan Laongmal <jaruwan(at)gits(dot)net(dot)th>
Cc: <pgsql-hackers(at)postgresql(dot)org>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: [HACKERS] why the DB file size does not reduce when 'delete' the data in DB?
Date: 2001-03-02 12:04:45
Message-ID: Pine.BSF.4.33.0103020804370.88613-100000@mobile.hub.org (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-sql
On Fri, 2 Mar 2001, 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?

VACUUM



In response to

Responses

pgsql-hackers by date

Next:From: Martin A. MarquesDate: 2001-03-02 12:36:02
Subject: Re: why the DB file size does not reduce when 'delete' the data in DB?
Previous:From: Ned LillyDate: 2001-03-02 02:03:27
Subject: 7.2 tools (was: WAL's single point of failure: latest CHECKPOINT record)

pgsql-sql by date

Next:From: Martin A. MarquesDate: 2001-03-02 12:36:02
Subject: Re: why the DB file size does not reduce when 'delete' the data in DB?
Previous:From: LaurentDate: 2001-03-02 10:34:50
Subject: lo_import for storing Blobs

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group