pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PG11 Parallel Thanks!!
5+ messages / 3 participants
[nested] [flat]

* PG11 Parallel Thanks!!
@ 2019-10-02 15:41  Jason Ralph <jralph@affinitysolutions.com>
  0 siblings, 2 replies; 5+ messages in thread

From: Jason Ralph @ 2019-10-02 15:41 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

I wanted to drop a quick note thanking the developers who have contributed to Postgres.  I have recently upgraded our production PG instances from pg9.3 to pg11.

We do a lot of table syncs, and we have one process at the end of the month that syncs 3 very large tables (400GB).  This sync happens from a shell script using pg_dump and pg_restore, we have it set to use -j3 but it's called sequentially so it never really takes advantage of parallel.

Since pg11 on both the target and source, the run time has decreased a lot, I chalk it up to the parallel index creations in pg11 which was a very time consuming process on pg9.3.
The process has finished almost 10 hours earlier than pg93.  So thank you for your hard work and dedication to this awesome piece of software.



Jason Ralph


This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: PG11 Parallel Thanks!!
@ 2019-10-03 04:58  Pankaj Jangid <pankaj.jangid@gmail.com>
  parent: Jason Ralph <jralph@affinitysolutions.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Pankaj Jangid @ 2019-10-03 04:58 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Jason Ralph <jralph@affinitysolutions.com> writes:

> I wanted to drop a quick note thanking the developers who have
> contributed to Postgres.  I have recently upgraded our production PG
> instances from pg9.3 to pg11.

>
> We do a lot of table syncs, and we have one process at the end of the
> month that syncs 3 very large tables (400GB).  This sync happens from
> a shell script using pg_dump and pg_restore, we have it set to use -j3
> but it's called sequentially so it never really takes advantage of
> parallel.
>
> Since pg11 on both the target and source, the run time has decreased a
> lot, I chalk it up to the parallel index creations in pg11 which was a
> very time consuming process on pg9.3.
> The process has finished almost 10 hours earlier than pg93.  So thank
> you for your hard work and dedication to this awesome piece of
> software.

This is a great user story. Thanks for sharing your experience, Jason.

-- 
Pankaj Jangid





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: PG11 Parallel Thanks!!
@ 2019-10-03 05:26  Peter Geoghegan <pg@bowt.ie>
  parent: Jason Ralph <jralph@affinitysolutions.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Peter Geoghegan @ 2019-10-03 05:26 UTC (permalink / raw)
  To: Jason Ralph <jralph@affinitysolutions.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

On Wed, Oct 2, 2019 at 8:41 AM Jason Ralph <jralph@affinitysolutions.com> wrote:
> Since pg11 on both the target and source, the run time has decreased a lot, I chalk it up to the parallel index creations in pg11 which was a very time consuming process on pg9.3.
> The process has finished almost 10 hours earlier than pg93.  So thank you for your hard work and dedication to this awesome piece of software.

How long did it take on 9.3?

I am the author of the parallel CREATE INDEX feature. It's good to get
feedback like this.

-- 
Peter Geoghegan





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* RE: PG11 Parallel Thanks!!
@ 2019-10-03 17:31  Jason Ralph <jralph@affinitysolutions.com>
  parent: Peter Geoghegan <pg@bowt.ie>
  0 siblings, 1 reply; 5+ messages in thread

From: Jason Ralph @ 2019-10-03 17:31 UTC (permalink / raw)
  To: Peter Geoghegan <pg@bowt.ie>; Pankaj Jangid <pankaj.jangid@gmail.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

>On Wed, Oct 2, 2019 at 8:41 AM Jason Ralph <jralph@affinitysolutions.com> wrote:
> Since pg11 on both the target and source, the run time has decreased a lot, I chalk it up to the parallel index creations in pg11 which was a very time consuming >process on pg9.3.
> The process has finished almost 10 hours earlier than pg93.  So thank you for your hard work and dedication to this awesome piece of software.

>How long did it take on 9.3?

>I am the author of the parallel CREATE INDEX feature. It's good to get feedback like this.

>--
>Peter Geoghegan


Hello @Peter Geoghegan,
Thank you!
The end of month process that we run at my company was a pg_dump and pg_restore of 3 tables, these tables are around ~(400GB) each.  The entire process on pg93 took 29 hours.

The index creation portion of the restore on the target pg9.3 database took:
5) time: -15 hours -4 minute ((-54264 % 60)) seconds

The index creation of the restore on the target db after pg11 upgrade on source and target took:
 5) time: -5 hours -7 minute ((-18434 % 60)) seconds

We saved 10 hours!!
Here is what we have on the target pg11 database., so max_parallel_workers_per_gather = 3 is what I think was what reduced the index creation time.

[13:20:04] [root@database ~] # cat /proc/cpuinfo | grep processor
processor: 0
processor: 1
processor: 2
processor: 3
processor: 4
processor: 5

max_worker_processes = 6                # (change requires restart)
max_parallel_workers_per_gather = 3     # taken from max_parallel_workers
max_parallel_workers = 6

Jason Ralph




-----Original Message-----
From: Peter Geoghegan <pg@bowt.ie>
Sent: Thursday, October 3, 2019 1:26 AM
To: Jason Ralph <jralph@affinitysolutions.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: PG11 Parallel Thanks!!

On Wed, Oct 2, 2019 at 8:41 AM Jason Ralph <jralph@affinitysolutions.com> wrote:
> Since pg11 on both the target and source, the run time has decreased a lot, I chalk it up to the parallel index creations in pg11 which was a very time consuming process on pg9.3.
> The process has finished almost 10 hours earlier than pg93.  So thank you for your hard work and dedication to this awesome piece of software.

How long did it take on 9.3?

I am the author of the parallel CREATE INDEX feature. It's good to get feedback like this.

--
Peter Geoghegan
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: PG11 Parallel Thanks!!
@ 2019-10-04 18:28  Peter Geoghegan <pg@bowt.ie>
  parent: Jason Ralph <jralph@affinitysolutions.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Peter Geoghegan @ 2019-10-04 18:28 UTC (permalink / raw)
  To: Jason Ralph <jralph@affinitysolutions.com>; +Cc: Pankaj Jangid <pankaj.jangid@gmail.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

On Thu, Oct 3, 2019 at 10:31 AM Jason Ralph
<jralph@affinitysolutions.com> wrote:
> The end of month process that we run at my company was a pg_dump and pg_restore of 3 tables, these tables are around ~(400GB) each.  The entire process on pg93 took 29 hours.
>
> The index creation portion of the restore on the target pg9.3 database took:
> 5) time: -15 hours -4 minute ((-54264 % 60)) seconds
>
> The index creation of the restore on the target db after pg11 upgrade on source and target took:
>  5) time: -5 hours -7 minute ((-18434 % 60)) seconds
>
> We saved 10 hours!!

The sort code received many improvements over the years, really
starting in 9.5, and continuing in 9.6, 10 and 11. FWIW, I think that
that was probably the biggest factor here. Though parallel CREATE
INDEX will have helped as well.

-- 
Peter Geoghegan





^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2019-10-04 18:28 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-10-02 15:41 PG11 Parallel Thanks!! Jason Ralph <jralph@affinitysolutions.com>
2019-10-03 04:58 ` Pankaj Jangid <pankaj.jangid@gmail.com>
2019-10-03 05:26 ` Peter Geoghegan <pg@bowt.ie>
2019-10-03 17:31   ` Jason Ralph <jralph@affinitysolutions.com>
2019-10-04 18:28     ` Peter Geoghegan <pg@bowt.ie>

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