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

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: [HACKERS] why the DB file size does not reduce when 'delete' the data in DB?
Дата
Msg-id 3A9FB629.4080601@tm.ee
обсуждение исходный текст
Ответ на why the DB file size does not reduce when 'delete' the data in DB?  ("Jaruwan Laongmal" <jaruwan@gits.net.th>)
Список pgsql-sql
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




В списке pgsql-sql по дате отправления:

Предыдущее
От: Martin Lillepuu
Дата:
Сообщение: union & subqueries
Следующее
От: Salvador Mainé
Дата:
Сообщение: Re: dates in functions