Reclaiming space

Поиск
Список
Период
Сортировка
От Christopher Gorge A. Marges
Тема Reclaiming space
Дата
Msg-id 4C98A78B.80200@apollo.com.ph
обсуждение исходный текст
Ответы Re: Reclaiming space  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Re: Reclaiming space  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: Reclaiming space  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-general
We are using 7.4.13 and run the pg_autovacuum.  Over the years, the database has grown so our maintenance plan was to "move" everything except for the last year.  Since the server is kept up always using a full vacuum is out of the question.  However the space is running out and we tried installing contrib/dbsize to see which tables were using up space.  The report of database_size is correct, we are using up to 120G of space, but adding up the reported sizes from relation_size does not add up.  So where does the unused space go?

The steps we do to move the data is as follows:
1) dump the data (per table)
2) restore the data to another server
3) delete the dumped records from the production server
4) vacuum analyze

Is there anyway to reclaim the space (the space used up by the tables themselves are less than 20G).


 


Christopher Gorge A. Marges
Software Services
Apollo Technologies, Inc.

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

Предыдущее
От: Arjen Nienhuis
Дата:
Сообщение: Re: varchar lengths
Следующее
От: Grzegorz Jaśkiewicz
Дата:
Сообщение: Re: Reclaiming space