Re: Backup strategies with significant bytea data

From: Ivan Voras <ivoras(at)freebsd(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Backup strategies with significant bytea data
Date: 2010-01-12 10:26:32
Message-ID: hihiom$2g2$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Leigh Dyer wrote:
> Hi,
>
> For years now I've simply backed up my databases by doing a nightly
> pg_dump, but since we added the ability for users to import binary files
> in to our application, which are stored in a bytea fields, the dump
> sizes have gone through the roof — even with gzip compression, they're
> significantly larger than the on-disk size of the database. My guess is
> that this due to the way that the binary data from the bytea fields is
> encoded in the dump file when it's produced.

Have you tried another dump format? E.g. "-F c" argument to pg_dump?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dimitri Fontaine 2010-01-12 11:01:28 Re: Pre-calculate hash join
Previous Message Yan Cheng Cheok 2010-01-12 06:53:09 Re: Best Practice when Encounter Invalid Stored Procedure Parameters