Re: About Large object Storage

From: Rémi Cura <remi(dot)cura(at)gmail(dot)com>
To: Kalai R <softlinne(dot)kv(at)gmail(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: About Large object Storage
Date: 2014-04-23 13:39:44
Message-ID: CAJvUf_tRNxGdz84-thgaTeTe-pReeDkRGQjaAYuLcVM=Uh7xxQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hey,
about your backup,
you must have use plain text backup,
writing in ascii to represent binary data is costly (and pointless?).
You can use compressed version of it.
About the size of your database,
maybe you can try a vacuum full before measuring the size?

Cheers,
Rémi-C

2014-04-23 15:22 GMT+02:00 Kalai R <softlinne(dot)kv(at)gmail(dot)com>:

> Hello,
>
> I am using postgresql 9.3 in Windows. I take data backup using pg_dump.
> The backup file size is 5 MB only. After that I insert 8 images using large
> object.
>
> The total size of 8 images are 24 MB. After insert large object only, I
> take data backup using pg_dump. Now the backup file size becomes 246 MB. I
> really shocked. so I check database size using the following query
>
> SELECT pg_size_pretty(pg_database_size('testdb'));
>
> The return value is 710 MB.
>
> What is the problem? How DB size increased extremely?
>
> Thanks for your Suggestions.
>
>
>
>
>
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2014-04-23 13:41:26 Re: About Large object Storage
Previous Message Kalai R 2014-04-23 13:22:56 About Large object Storage