Re: PostgreSQL Dump rate is too slow

From: Eduardo Morras <emorrasg(at)yahoo(dot)es>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: PostgreSQL Dump rate is too slow
Date: 2015-01-14 20:20:58
Message-ID: 20150114212058.de1c87d91a851db0bce1f1fa@yahoo.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, 8 Jan 2015 11:05:54 +0530
girish R G peetle <giri(dot)anamika0(at)gmail(dot)com> wrote:

> Hi all,
> We have a customer who has 1TB database on a production server. They
> are trying dump based backup of this large database. Following dump
> command is being used.
> Dump rate is around 12 GB/hr, which will take lot of time for the
> backup to complete. This is affecting their production server.
> Is there is a way to increase dump data rate ?
>
> pg_dump -U <User> -Fc -b --port=<Port> '<Db-Name>'
>

Do not use pg_dump compression, pipe output to xz

% pg_dump -U <User> -Fc -b --port=<Port> '<Db-Name>' | xz -3 dump.xz

or pipe xz output to other program.

When I looked for the same problem in 8.3-8.4 versions, the bottleneck was in accessing TOAST tables, it's content was decompressed, dumped and recompressed again, don't know if it has changed in current versions.

>
> PostgreSQL version : 9.2.4
> Platform : Linux
>
> Thanks
> Girish

--- ---
Eduardo Morras <emorrasg(at)yahoo(dot)es>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Joshua D. Drake 2015-01-14 21:02:42 Re: PostgreSQL Dump rate is too slow
Previous Message Campbell, Lance 2015-01-14 16:38:36 Re: How to identify all storage in a schema