From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Artem Tomyuk <admin@leboutique.com>
To: pgsql-admin@postgresql.org
Subject: Re: Fastest Backup Method?
Date: Tue, 5 Sep 2017 14:50:27 -0400
Message-ID: <b4e3a529-33ca-4e77-9b95-87b7be4e569c@2ndquadrant.com> (raw)
In-Reply-To: <CANYYVq+mMcG4CaDaXaw1forru51VH_rA3ahR+1c++62ipZN5Kw@mail.gmail.com>
References: <CANYYVq+mMcG4CaDaXaw1forru51VH_rA3ahR+1c++62ipZN5Kw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, admin@leboutique.com
Subject: Re: Fastest Backup Method?
In-Reply-To: <b4e3a529-33ca-4e77-9b95-87b7be4e569c@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox