Re: How to optimize PostgreSQL database size - Mailing list pgsql-general

From Tom Lane
Subject Re: How to optimize PostgreSQL database size
Date
Msg-id 7111.1151010951@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to optimize PostgreSQL database size  (Jim Nasby <jnasby@pervasive.com>)
List pgsql-general
Jim Nasby <jnasby@pervasive.com> writes:
> On Jun 18, 2006, at 10:47 PM, Qingqing Zhou wrote:
>> After dump/restore the database size is 1685 MB and after
>> vacuum-full/reindex is 1990 MB. Where we saved 305 MB?

> My guess would be due to toasted text columns...

No, it's probably got more to do with the fact that VACUUM FULL stops
trying to compact a table once it finds a row that it can't move down.
There can be quite a lot of empty space left in the table, if one of the
last rows is significantly wider than the average for the table.

            regards, tom lane

pgsql-general by date:

Previous
From: "Relyea, Mike"
Date:
Subject: Re: Out of memory error in 8.1.0 Win32
Next
From: Tom Lane
Date:
Subject: Re: autovacuum template0