Re: PostgreSQL Dump rate is too slow - Mailing list pgsql-admin

From Harshad Adalkonda
Subject Re: PostgreSQL Dump rate is too slow
Date
Msg-id CANnQH_i5k+Rq9ntcu1DiggfTcGUZ=eXmMFc0ptTjPHkxN_U16A@mail.gmail.com
Whole thread Raw
In response to PostgreSQL Dump rate is too slow  (girish R G peetle <giri.anamika0@gmail.com>)
Responses Re: PostgreSQL Dump rate is too slow
Re: PostgreSQL Dump rate is too slow
List pgsql-admin

On Thu, Jan 8, 2015 at 11:05 AM, girish R G peetle <giri.anamika0@gmail.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>'


PostgreSQL version : 9.2.4
Platform : Linux

Thanks

Hi Girish,

As the database size is too large and tweaking  few database parameters will result towards performance improvement on pg_dump to some extent and pg_dump -j option would have helped if the DB version is PostgreSQL 9.3 but unfortunately your DB version is PostgreSQL 9.2

Another option I would think of to speed up by performing pg_dump in parallel for Database Or schema level however it would increase the load on the server.

The streaming replication option is the best solution for such higher database which will result towards to reduce the higher downtime/data loss and recovery time also helpful to perform physical and logical backups from replica instead of primary to avoid the impact on the primary servers..

Hope this helps.

Thanks & Regards,

Harshad Adalkonda
Database Administrator

http://www.shreeyansh.com

pgsql-admin by date:

Previous
From: girish R G peetle
Date:
Subject: Re: PostgreSQL Dump rate is too slow
Next
From: Robert Burgholzer
Date:
Subject: Re: PostgreSQL Dump rate is too slow