From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Raghavendra Rao J S V <raghavendrajsv@gmail.com>
To: Pavan Teja <pavan.postgresdba@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Please let me know which configuration setting we need to modify to speedup the pg_dump backup.
Date: Thu, 11 Oct 2018 06:44:08 +0200
Message-ID: <55cde7f327bef685248b1949adcbc17756b2cc72.camel@cybertec.at> (raw)
In-Reply-To: <CAEHH7R6MCKpyjnU9-RAnznkfqQ8=C7pgfd8hO8SVm3p6zJ7gng@mail.gmail.com>
References: <CAEHH7R5c+9VpG1yFzJrW9QtM44dsMKKO+ktHMAuhRs7LOHbb6g@mail.gmail.com>
<CACh9nsZgu+90MHB3UeDbv9MsdLspECfrkBQwLigrLkQKr-UtXg@mail.gmail.com>
<CAEHH7R6MCKpyjnU9-RAnznkfqQ8=C7pgfd8hO8SVm3p6zJ7gng@mail.gmail.com>
Please bottom-post, otherwise the thread becomes hard to read.
On Thu, 2018-10-11 at 08:44 +0530, Raghavendra Rao J S V wrote:
> We are using postgresql 9.2. It doesn't contain the option.
>
> Please guide me any other approaches to improve the performance of pg_dump.
>
> On Thu 11 Oct, 2018, 8:05 AM Pavan Teja, <pavan.postgresdba@gmail.com> wrote:
> > You can use -j jobs option to speed up the process.
> >
> > Hope it works.
> >
> > On Thu, Oct 11, 2018, 8:02 AM Raghavendra Rao J S V <raghavendrajsv@gmail.com> wrote:
> > > pg_dump is taking more time. Please let me know which configuration setting we
> > > need to modify to speedup the pg_dump backup.We are using 9.2 version on Centos Box.
There you have your first configuration change to speed up pg_dump:
upgrade from 9.2 to a release that is still supported.
And please don't tell me that you cannot / may not.
If your data are important for you, and you really want that speed-up,
you can.
Anyway, to make pg_dump faster with the -j option, you need to use
the "directory format" (-F d).
Other options to speed up pg_dump are limited: you can get faster
storage so that sequential scans are faster or more memory so that
more of the data resides in the filesystem cache.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, raghavendrajsv@gmail.com, pavan.postgresdba@gmail.com
Subject: Re: Please let me know which configuration setting we need to modify to speedup the pg_dump backup.
In-Reply-To: <55cde7f327bef685248b1949adcbc17756b2cc72.camel@cybertec.at>
References: <CAEHH7R5c+9VpG1yFzJrW9QtM44dsMKKO+ktHMAuhRs7LOHbb6g@mail.gmail.com> <CACh9nsZgu+90MHB3UeDbv9MsdLspECfrkBQwLigrLkQKr-UtXg@mail.gmail.com> <CAEHH7R6MCKpyjnU9-RAnznkfqQ8=C7pgfd8hO8SVm3p6zJ7gng@mail.gmail.com> <55cde7f327bef685248b1949adcbc17756b2cc72.camel@cybertec.at>
* 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