pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: jesper.pedersen@redhat.com
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Jamison, Kirk <k.jamison@jp.fujitsu.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: fabriziomello@gmail.com <fabriziomello@gmail.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: Tue, 26 Mar 2019 12:28:34 +0100
Message-ID: <2c054085-0b68-c049-d6d8-8b74852b4c73@2ndquadrant.com> (raw)
In-Reply-To: <30470.1553551070@sss.pgh.pa.us>
References: <201902010958.cf2cbi3d2ule@alvherre.pgsql>
	<bef52417-2416-cb97-afce-a351601eab43@redhat.com>
	<D09B13F772D2274BB348A310EE3027C64659E9@g01jpexmbkw24>
	<CA+TgmobMGTfkMY-isz4pLw_bfywVOqTUDcW+obeAfYSeTBJM7A@mail.gmail.com>
	<03845f77-49e7-4569-7062-8ee1fb460ec2@redhat.com>
	<30470.1553551070@sss.pgh.pa.us>

On 2019-03-25 22:57, Tom Lane wrote:
> +	fprintf(script, "echo %sYou may wish to add --jobs=N for parallel analyzing.%s\n",
> +			ECHO_QUOTE, ECHO_QUOTE);

But then you get that information after you have already started the script.

I don't find any information about this analyze business on the
pg_upgrade reference page.  Maybe a discussion there could explain the
different paths better than making the output script extra complicated.

Essentially: If you want a slow and gentle analyze, use the supplied
script.  If you want a fast analyze, use vacuumdb, perhaps with an
appropriate --jobs option.  Note that pg_upgrade --jobs and vacuumdb
--jobs are resource-bound in different ways, so the same value might not
be appropriate for both.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (44+ messages)  latest in thread

Message-ID: <2c054085-0b68-c049-d6d8-8b74852b4c73@2ndquadrant.com>
Permalink:  ../2c054085-0b68-c049-d6d8-8b74852b4c73@2ndquadrant.com/
Also on:    postgresql.org/message-id/2c054085-0b68-c049-d6d8-8b74852b4c73@2ndquadrant.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: peter.eisentraut@2ndquadrant.com, tgl@sss.pgh.pa.us, jesper.pedersen@redhat.com, robertmhaas@gmail.com, k.jamison@jp.fujitsu.com, alvherre@2ndquadrant.com, michael@paquier.xyz, fabriziomello@gmail.com, pgsql-hackers@lists.postgresql.org, bruce@momjian.us
  Subject: Re: pg_upgrade: Pass -j down to vacuumdb
  In-Reply-To: <2c054085-0b68-c049-d6d8-8b74852b4c73@2ndquadrant.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