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

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


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

Предыдущее
От: Sondaar Roelof
Дата:
Сообщение: RE: Help creating rules/triggers/functions
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: SQL copy from csv with explicit field ordering