Re: [ADMIN] Fastest Backup Method? - Mailing list pgsql-admin

From Peter Eisentraut
Subject Re: [ADMIN] Fastest Backup Method?
Date
Msg-id b4e3a529-33ca-4e77-9b95-87b7be4e569c@2ndquadrant.com
Whole thread Raw
In response to [ADMIN] Fastest Backup Method?  (Artem Tomyuk <admin@leboutique.com>)
Responses Re: [ADMIN] Fastest Backup Method?  (Greg Spiegelberg <gspiegelberg@gmail.com>)
List pgsql-admin
On 9/4/17 13:23, Artem Tomyuk wrote:
> I'am wondering, what is the fastest backup method do you know, for me it is:
> (Assume that we running on 16 * CPU  box)
>
> pg_dump -Z 4 -j 16 -F c -F d 
>
> -Z 4 compression level
>
> -j 16 number of parallel jobs
>
> -F c, d  custom+directory format 

I think you misunderstood that last part.  There can only be one output
format, and the last option wins.  So you are really running in
directory format only.

As for performance, you generally have the right idea.  Specifics depend
on the hardware.

My experience is that any compression at all can be bad for performance.
 But the I/O cost might balance that in some cases.

--
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-admin by date:

Previous
From: Andrea Bonomelli
Date:
Subject: [ADMIN] database and OS
Next
From: Greg Spiegelberg
Date:
Subject: Re: [ADMIN] Fastest Backup Method?