Reclaiming space - Mailing list pgsql-general

From Christopher Gorge A. Marges
Subject Reclaiming space
Date
Msg-id 4C98A78B.80200@apollo.com.ph
Whole thread Raw
Responses 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>)
List 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 by date:

Previous
From: Arjen Nienhuis
Date:
Subject: Re: varchar lengths
Next
From: Grzegorz Jaśkiewicz
Date:
Subject: Re: Reclaiming space