pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jesper Pedersen <jesper.pedersen@redhat.com>
To: Jamison, Kirk <k.jamison@jp.fujitsu.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers@lists.postgresql.org <pgsql-hackers@lists.postgresql.org>
Cc: Bruce Momjian <bruce@momjian.us>
Subject: Re: pg_upgrade: Pass -j down to vacuumdb
Date: Fri, 25 Jan 2019 08:30:57 -0500
Message-ID: <c448acf6-7c38-3d6d-c663-5387ccffb906@redhat.com> (raw)
In-Reply-To: <D09B13F772D2274BB348A310EE3027C64137E4@g01jpexmbkw24>
References: <11b6b108-6ac0-79a6-785a-f13dfe60ab92@redhat.com>
	<ba90295e-9734-07bc-3453-bfa878948478@2ndquadrant.com>
	<2dc5eaeb-e60d-2a16-696e-7b4d3d3548cb@redhat.com>
	<59f9323a-fee8-88f6-16ab-2319149b00be@2ndquadrant.com>
	<5b7d95ba-8920-357d-1ec6-1084ce34a9e6@redhat.com>
	<D09B13F772D2274BB348A310EE3027C64137E4@g01jpexmbkw24>

Hi Kirk,

On 1/24/19 9:31 PM, Jamison, Kirk wrote:
> According to CF app, this patch needs review so I took a look at it.
> Currently, your patch applies and builds cleanly, and all tests are also successful
> based from the CF bot patch tester.
> 
> I'm not sure if I have understood the argument raised by Peter correctly.
> Quoting Peter, "it's not clear that pg_upgrade and vacuumdb are bound the same way, so it's not a given that the same -j number should be used."
> I think it's whether the # jobs for pg_upgrade is used the same way for parallel vacuum.
> 
> According to the official docs, the recommended setting for pg_upgrade --j option is the maximum of the number of CPU cores and tablespaces. [1]
> As for vacuumdb, parallel vacuum's (-j) recommended setting is based from your max_connections [2], which is the max # of concurrent connections to your db server.
>

Thanks for your feedback !

As per Peter's comments I have changed the patch (v2) to not pass down 
the -j option to vacuumdb.

Only an update to the documentation and console output is made in order 
to make it more clear.

Best regards,
  Jesper




view thread (44+ messages)  latest in thread

Message-ID: <c448acf6-7c38-3d6d-c663-5387ccffb906@redhat.com>
Permalink:  ../c448acf6-7c38-3d6d-c663-5387ccffb906@redhat.com/
Also on:    postgresql.org/message-id/c448acf6-7c38-3d6d-c663-5387ccffb906@redhat.com

 · 

reply

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-hackers@postgresql.org
  Cc: jesper.pedersen@redhat.com, k.jamison@jp.fujitsu.com, peter.eisentraut@2ndquadrant.com, pgsql-hackers@lists.postgresql.org, bruce@momjian.us
  Subject: Re: pg_upgrade: Pass -j down to vacuumdb
  In-Reply-To: <c448acf6-7c38-3d6d-c663-5387ccffb906@redhat.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