From: | Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu> |
---|---|
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 13:30:38 |
Message-ID: | 3A9FA07E.AB3A6DB6@alumni.caltech.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-sql |
> 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 "vacuum" from SQL or "vacuumdb" from the command line. Tables will
be reduced in size, though currently indices are not.
- Thomas
From | Date | Subject | |
---|---|---|---|
Next Message | Hannu Krosing | 2001-03-02 15:03:05 | Re: [HACKERS] why the DB file size does not reduce when 'delete' the data in DB? |
Previous Message | Jaruwan Laongmal | 2001-03-02 12:40:42 | why the DB file size does not reduce when 'delete' the data in DB? |
From | Date | Subject | |
---|---|---|---|
Next Message | Martin Lillepuu | 2001-03-02 13:42:43 | union & subqueries |
Previous Message | Jaruwan Laongmal | 2001-03-02 12:40:42 | why the DB file size does not reduce when 'delete' the data in DB? |