Re: pg_dump and diffrent sizes - Mailing list pgsql-sql

From Scott Marlowe
Subject Re: pg_dump and diffrent sizes
Date
Msg-id 1141416931.18820.111.camel@state.g2switchworks.com
Whole thread Raw
In response to pg_dump and diffrent sizes  (Maciej Piekielniak <piechcio@isb.com.pl>)
List 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.



pgsql-sql by date:

Previous
From: Maciej Piekielniak
Date:
Subject: pg_dump and diffrent sizes
Next
From: "Davidson, Robert"
Date:
Subject: Getting yyyy-mm-dd 00:00:00 in an arbitrary time zone