RE: PG11 Parallel Thanks!!

From: Jason Ralph <jralph(at)affinitysolutions(dot)com>
To: Peter Geoghegan <pg(at)bowt(dot)ie>, Pankaj Jangid <pankaj(dot)jangid(at)gmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: RE: PG11 Parallel Thanks!!
Date: 2019-10-03 17:31:18
Message-ID: BL0PR04MB6499F0DB159A65282D1259D6D09F0@BL0PR04MB6499.namprd04.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>On Wed, Oct 2, 2019 at 8:41 AM Jason Ralph <jralph(at)affinitysolutions(dot)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(at)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(at)bowt(dot)ie>
Sent: Thursday, October 3, 2019 1:26 AM
To: Jason Ralph <jralph(at)affinitysolutions(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: PG11 Parallel Thanks!!

On Wed, Oct 2, 2019 at 8:41 AM Jason Ralph <jralph(at)affinitysolutions(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message bhargav kamineni 2019-10-03 17:31:20 Re: PMChildFlags array
Previous Message Tom Lane 2019-10-03 17:22:18 Re: PMChildFlags array