pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedPlease let me know which configuration setting we need to modify to speedup the pg_dump backup.
7+ messages / 5 participants
[nested] [flat]
* Please let me know which configuration setting we need to modify to speedup the pg_dump backup.
@ 2018-10-11 02:32 Raghavendra Rao J S V <raghavendrajsv@gmail.com>
0 siblings, 3 replies; 7+ messages in thread
From: Raghavendra Rao J S V @ 2018-10-11 02:32 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hi All,
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.
--
Regards,
Raghavendra Rao J S V
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Please let me know which configuration setting we need to modify to speedup the pg_dump backup.
@ 2018-10-11 02:35 Pavan Teja <pavan.postgresdba@gmail.com>
parent: Raghavendra Rao J S V <raghavendrajsv@gmail.com>
2 siblings, 1 reply; 7+ messages in thread
From: Pavan Teja @ 2018-10-11 02:35 UTC (permalink / raw)
To: Raghavendra Rao J S V <raghavendrajsv@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
Hi,
You can use -j jobs option to speed up the process.
Hope it works.
Regards,
Pavan
On Thu, Oct 11, 2018, 8:02 AM Raghavendra Rao J S V <
raghavendrajsv@gmail.com> wrote:
> Hi All,
>
> 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.
>
> --
> Regards,
> Raghavendra Rao J S V
>
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Please let me know which configuration setting we need to modify to speedup the pg_dump backup.
@ 2018-10-11 02:42 Ron <ronljohnsonjr@gmail.com>
parent: Raghavendra Rao J S V <raghavendrajsv@gmail.com>
2 siblings, 0 replies; 7+ messages in thread
From: Ron @ 2018-10-11 02:42 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 10/10/2018 09:32 PM, Raghavendra Rao J S V wrote:
> Hi All,
>
> 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.
Is it taking "more time" because your database is bigger?
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Please let me know which configuration setting we need to modify to speedup the pg_dump backup.
@ 2018-10-11 03:11 Christopher Browne <cbbrowne@gmail.com>
parent: Raghavendra Rao J S V <raghavendrajsv@gmail.com>
2 siblings, 1 reply; 7+ messages in thread
From: Christopher Browne @ 2018-10-11 03:11 UTC (permalink / raw)
To: Raghavendra Rao J S V <raghavendrajsv@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
On Wed, Oct 10, 2018, 10:32 PM Raghavendra Rao J S V <
raghavendrajsv@gmail.com> wrote:
> Hi All,
>
> 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 certainly isn't a configuration parameter to say "make PG dump
faster."
- It is possible that it is taking longer to backup the database because
the database has grown in size. If you have a lot more data captured, this
would be a natural consequence, that you need simply to accept.
But there are additional possibilities...
- Perhaps the database is bloated because an update pattern is leading to a
lot of dead data being left behind. In that case some tables need to be
vacuumed much more often and you should look into the auto vacuum
configuration.
- Perhaps the database has some table that contains a lot of obsolete
data. This would depend heavily on the nature of your application.
You should look to see what data you are collecting that is not of ongoing
value. That may represent data that you should trim out of the database.
That should improve the amount of time it takes to do a backup of the
database.
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Please let me know which configuration setting we need to modify to speedup the pg_dump backup.
@ 2018-10-11 03:14 Raghavendra Rao J S V <raghavendrajsv@gmail.com>
parent: Pavan Teja <pavan.postgresdba@gmail.com>
0 siblings, 1 reply; 7+ messages in thread
From: Raghavendra Rao J S V @ 2018-10-11 03:14 UTC (permalink / raw)
To: Pavan Teja <pavan.postgresdba@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
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:
> Hi,
>
> You can use -j jobs option to speed up the process.
>
> Hope it works.
>
> Regards,
> Pavan
>
> On Thu, Oct 11, 2018, 8:02 AM Raghavendra Rao J S V <
> raghavendrajsv@gmail.com> wrote:
>
>> Hi All,
>>
>> 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.
>>
>> --
>> Regards,
>> Raghavendra Rao J S V
>>
>>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Please let me know which configuration setting we need to modify to speedup the pg_dump backup.
@ 2018-10-11 03:16 Raghavendra Rao J S V <raghavendrajsv@gmail.com>
parent: Christopher Browne <cbbrowne@gmail.com>
0 siblings, 0 replies; 7+ messages in thread
From: Raghavendra Rao J S V @ 2018-10-11 03:16 UTC (permalink / raw)
To: Christopher Browne <cbbrowne@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
Thank you very much for your prompt response Christopher.
On Thu 11 Oct, 2018, 8:41 AM Christopher Browne, <cbbrowne@gmail.com> wrote:
> On Wed, Oct 10, 2018, 10:32 PM Raghavendra Rao J S V <
> raghavendrajsv@gmail.com> wrote:
>
>> Hi All,
>>
>> 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 certainly isn't a configuration parameter to say "make PG dump
> faster."
>
> - It is possible that it is taking longer to backup the database because
> the database has grown in size. If you have a lot more data captured, this
> would be a natural consequence, that you need simply to accept.
>
> But there are additional possibilities...
>
> - Perhaps the database is bloated because an update pattern is leading to
> a lot of dead data being left behind. In that case some tables need to be
> vacuumed much more often and you should look into the auto vacuum
> configuration.
>
> - Perhaps the database has some table that contains a lot of obsolete
> data. This would depend heavily on the nature of your application.
>
> You should look to see what data you are collecting that is not of ongoing
> value. That may represent data that you should trim out of the database.
> That should improve the amount of time it takes to do a backup of the
> database.
>
>>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Please let me know which configuration setting we need to modify to speedup the pg_dump backup.
@ 2018-10-11 04:44 Laurenz Albe <laurenz.albe@cybertec.at>
parent: Raghavendra Rao J S V <raghavendrajsv@gmail.com>
0 siblings, 0 replies; 7+ messages in thread
From: Laurenz Albe @ 2018-10-11 04:44 UTC (permalink / raw)
To: Raghavendra Rao J S V <raghavendrajsv@gmail.com>; Pavan Teja <pavan.postgresdba@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2018-10-11 04:44 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-10-11 02:32 Please let me know which configuration setting we need to modify to speedup the pg_dump backup. Raghavendra Rao J S V <raghavendrajsv@gmail.com>
2018-10-11 02:35 ` Pavan Teja <pavan.postgresdba@gmail.com>
2018-10-11 03:14 ` Raghavendra Rao J S V <raghavendrajsv@gmail.com>
2018-10-11 04:44 ` Laurenz Albe <laurenz.albe@cybertec.at>
2018-10-11 02:42 ` Ron <ronljohnsonjr@gmail.com>
2018-10-11 03:11 ` Christopher Browne <cbbrowne@gmail.com>
2018-10-11 03:16 ` Raghavendra Rao J S V <raghavendrajsv@gmail.com>
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