Re: pg_dump and diffrent sizes

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Maciej Piekielniak <piechcio(at)isb(dot)com(dot)pl>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: pg_dump and diffrent sizes
Date: 2006-03-03 20:15:31
Message-ID: 1141416931.18820.111.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, 2006-03-03 at 14:10, Maciej Piekielniak wrote:
> Hello pgsql-sql,
>
> I dump db with pg_dump v.8.1.3 on database postgresql server 7.4.7.
> Data directory with my db on pg 7.4.7 had 1,8GB and
> file with dump had 2,7GB.
> Database have blob fields.
>
> When I restore db on pg 8.1 - data directory have only 1GB, why?

I would guess that you have lots of highly compressible text entries,
and postgresql is compressing them for you. The difference in size
between 7.4 and 8.1 is likely due to unrecycled tuples in the data
store. Even with regular vacuuming, some small percentage of dead
tuples is normal.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Mark Dilger 2006-03-03 20:25:58 Re: [SQL] Interval subtracting
Previous Message Maciej Piekielniak 2006-03-03 20:10:26 pg_dump and diffrent sizes