Re: diskspace usage recovered on db rebuild

From: Lonni J Friedman <netllama(at)gmail(dot)com>
To: David Link <dlink(at)soundscan(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: diskspace usage recovered on db rebuild
Date: 2005-04-01 17:28:00
Message-ID: 7c1574a90504010928592f7f9@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Apr 1, 2005 9:21 AM, David Link <dlink(at)soundscan(dot)com> wrote:
> Greetings worthymen.
>
> I have a question regarding filesystem disk space usage.
>
> We have a production database containing 5 years of sales data.
> Linux 2.6.5; Postgresq 7.4.7. VACUUM ANALZYE the entire database
> everynight (about 40min).
> It's size, @SUM(pg_class.relpages) * 8192K, is ...
>
> About 66 Gigabytes on disk.
>
> When I rebuild the database (using pg_dump and pgsql ), the new
> resultant database is ..
>
> About 48 Gigabytes on disk.
>
> A 27% space savings.
>
> Can someone tell me why that is?

Are you doing a vacuum full each night? What is the specific
command(s) that you are using for vacuum, pg_dump and the import?

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman netllama(at)gmail(dot)com
LlamaLand http://netllama.linux-sxs.org

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Elim Qiu 2005-04-01 17:43:51 from mysql to pgsql
Previous Message David Link 2005-04-01 17:21:23 diskspace usage recovered on db rebuild